Les API sous la version /beta dans Microsoft Graph sont susceptibles d’être modifiées. L’utilisation de ces API dans des applications de production n’est pas prise en charge. Pour déterminer si une API est disponible dans v1.0, utilisez le sélecteur Version .
Obtenez une liste d’objets appCredentialSignInActivity qui contient l’activité récente des informations d’identification de l’application.
Dans les scénarios délégués avec des comptes professionnels ou scolaires, l’utilisateur connecté doit se voir attribuer un rôle Microsoft Entra pris en charge ou un rôle personnalisé avec une autorisation de rôle prise en charge. Les rôles les moins privilégiés suivants sont pris en charge pour cette opération :
Lecteur de rapports
Lecteur de sécurité
Administrateur de sécurité
Requête HTTP
GET /reports/appCredentialSignInActivities
Paramètres facultatifs de la requête
Cette méthode prend en charge les $topparamètres de requête OData , $filteret $orderby pour vous aider à personnaliser la réponse. Pour des informations générales, consultez paramètres de la requête OData.
GET https://graph.microsoft.com/beta/reports/appCredentialSignInActivities
// Code snippets are only available for the latest version. Current version is 5.x
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.Reports.AppCredentialSignInActivities.GetAsync();
// Code snippets are only available for the latest major version. Current major version is $v0.*
// Dependencies
import (
"context"
msgraphsdk "github.com/microsoftgraph/msgraph-beta-sdk-go"
//other-imports
)
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=go
appCredentialSignInActivities, err := graphClient.Reports().AppCredentialSignInActivities().Get(context.Background(), nil)
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
AppCredentialSignInActivityCollectionResponse result = graphClient.reports().appCredentialSignInActivities().get();
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph_beta import GraphServiceClient
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
result = await graph_client.reports.app_credential_sign_in_activities.get()
GET https://graph.microsoft.com/beta/reports/appCredentialSignInActivities?$filter=keyId eq '83f45296-fb8f-4aaa-a399-ac51084e02b7'
// Code snippets are only available for the latest version. Current version is 5.x
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.Reports.AppCredentialSignInActivities.GetAsync((requestConfiguration) =>
{
requestConfiguration.QueryParameters.Filter = "keyId eq '83f45296-fb8f-4aaa-a399-ac51084e02b7'";
});
// Code snippets are only available for the latest major version. Current major version is $v0.*
// Dependencies
import (
"context"
msgraphsdk "github.com/microsoftgraph/msgraph-beta-sdk-go"
graphreports "github.com/microsoftgraph/msgraph-beta-sdk-go/reports"
//other-imports
)
requestFilter := "keyId eq '83f45296-fb8f-4aaa-a399-ac51084e02b7'"
requestParameters := &graphreports.ReportsAppCredentialSignInActivitiesRequestBuilderGetQueryParameters{
Filter: &requestFilter,
}
configuration := &graphreports.ReportsAppCredentialSignInActivitiesRequestBuilderGetRequestConfiguration{
QueryParameters: requestParameters,
}
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=go
appCredentialSignInActivities, err := graphClient.Reports().AppCredentialSignInActivities().Get(context.Background(), configuration)
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
AppCredentialSignInActivityCollectionResponse result = graphClient.reports().appCredentialSignInActivities().get(requestConfiguration -> {
requestConfiguration.queryParameters.filter = "keyId eq '83f45296-fb8f-4aaa-a399-ac51084e02b7'";
});
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph_beta import GraphServiceClient
from msgraph_beta.generated.reports.app_credential_sign_in_activities.app_credential_sign_in_activities_request_builder import AppCredentialSignInActivitiesRequestBuilder
from kiota_abstractions.base_request_configuration import RequestConfiguration
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
query_params = AppCredentialSignInActivitiesRequestBuilder.AppCredentialSignInActivitiesRequestBuilderGetQueryParameters(
filter = "keyId eq '83f45296-fb8f-4aaa-a399-ac51084e02b7'",
)
request_configuration = RequestConfiguration(
query_parameters = query_params,
)
result = await graph_client.reports.app_credential_sign_in_activities.get(request_configuration = request_configuration)
GET https://graph.microsoft.com/beta/reports/appCredentialSignInActivities?$filter=appId eq 'f4d9654f-0305-4072-878c-8bf266dfe146'
// Code snippets are only available for the latest version. Current version is 5.x
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.Reports.AppCredentialSignInActivities.GetAsync((requestConfiguration) =>
{
requestConfiguration.QueryParameters.Filter = "appId eq 'f4d9654f-0305-4072-878c-8bf266dfe146'";
});
// Code snippets are only available for the latest major version. Current major version is $v0.*
// Dependencies
import (
"context"
msgraphsdk "github.com/microsoftgraph/msgraph-beta-sdk-go"
graphreports "github.com/microsoftgraph/msgraph-beta-sdk-go/reports"
//other-imports
)
requestFilter := "appId eq 'f4d9654f-0305-4072-878c-8bf266dfe146'"
requestParameters := &graphreports.ReportsAppCredentialSignInActivitiesRequestBuilderGetQueryParameters{
Filter: &requestFilter,
}
configuration := &graphreports.ReportsAppCredentialSignInActivitiesRequestBuilderGetRequestConfiguration{
QueryParameters: requestParameters,
}
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=go
appCredentialSignInActivities, err := graphClient.Reports().AppCredentialSignInActivities().Get(context.Background(), configuration)
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
AppCredentialSignInActivityCollectionResponse result = graphClient.reports().appCredentialSignInActivities().get(requestConfiguration -> {
requestConfiguration.queryParameters.filter = "appId eq 'f4d9654f-0305-4072-878c-8bf266dfe146'";
});
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph_beta import GraphServiceClient
from msgraph_beta.generated.reports.app_credential_sign_in_activities.app_credential_sign_in_activities_request_builder import AppCredentialSignInActivitiesRequestBuilder
from kiota_abstractions.base_request_configuration import RequestConfiguration
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
query_params = AppCredentialSignInActivitiesRequestBuilder.AppCredentialSignInActivitiesRequestBuilderGetQueryParameters(
filter = "appId eq 'f4d9654f-0305-4072-878c-8bf266dfe146'",
)
request_configuration = RequestConfiguration(
query_parameters = query_params,
)
result = await graph_client.reports.app_credential_sign_in_activities.get(request_configuration = request_configuration)