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 .
Supprimez un utilisateur ou un groupe de la liste rejected-senders du groupe spécifié.
// Code snippets are only available for the latest version. Current version is 5.x
// To initialize your graphClient, see https://video2.skills-academy.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
await graphClient.Groups["{group-id}"].RejectedSenders.Ref.DeleteAsync((requestConfiguration) =>
{
requestConfiguration.QueryParameters.Id = "https://graph.microsoft.com/beta/users/{id}";
});
// 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"
graphgroups "github.com/microsoftgraph/msgraph-beta-sdk-go/groups"
//other-imports
)
requestId := "https://graph.microsoft.com/beta/users/{id}"
requestParameters := &graphgroups.GroupItemRejectedSenders$refRequestBuilderDeleteQueryParameters{
Id: &requestId,
}
configuration := &graphgroups.GroupItemRejectedSenders$refRequestBuilderDeleteRequestConfiguration{
QueryParameters: requestParameters,
}
// To initialize your graphClient, see https://video2.skills-academy.com/en-us/graph/sdks/create-client?from=snippets&tabs=go
graphClient.Groups().ByGroupId("group-id").RejectedSenders().Ref().Delete(context.Background(), configuration)
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
graphClient.groups().byGroupId("{group-id}").rejectedSenders().ref().delete(requestConfiguration -> {
requestConfiguration.queryParameters.id = "https://graph.microsoft.com/beta/users/{id}";
});
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph_beta import GraphServiceClient
from msgraph_beta.generated.groups.item.rejected_senders.ref.ref_request_builder import RefRequestBuilder
from kiota_abstractions.base_request_configuration import RequestConfiguration
# To initialize your graph_client, see https://video2.skills-academy.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
query_params = RefRequestBuilder.RefRequestBuilderDeleteQueryParameters(
id = "https://graph.microsoft.com/beta/users/{id}",
)
request_configuration = RequestConfiguration(
query_parameters = query_params,
)
await graph_client.groups.by_group_id('group-id').rejected_senders.ref.delete(request_configuration = request_configuration)
// Code snippets are only available for the latest version. Current version is 5.x
// To initialize your graphClient, see https://video2.skills-academy.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
await graphClient.Groups["{group-id}"].RejectedSenders.Ref.DeleteAsync((requestConfiguration) =>
{
requestConfiguration.QueryParameters.Id = "https://graph.microsoft.com/beta/groups/{other-group-id}";
});
// 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"
graphgroups "github.com/microsoftgraph/msgraph-beta-sdk-go/groups"
//other-imports
)
requestId := "https://graph.microsoft.com/beta/groups/{other-group-id}"
requestParameters := &graphgroups.GroupItemRejectedSenders$refRequestBuilderDeleteQueryParameters{
Id: &requestId,
}
configuration := &graphgroups.GroupItemRejectedSenders$refRequestBuilderDeleteRequestConfiguration{
QueryParameters: requestParameters,
}
// To initialize your graphClient, see https://video2.skills-academy.com/en-us/graph/sdks/create-client?from=snippets&tabs=go
graphClient.Groups().ByGroupId("group-id").RejectedSenders().Ref().Delete(context.Background(), configuration)
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
graphClient.groups().byGroupId("{group-id}").rejectedSenders().ref().delete(requestConfiguration -> {
requestConfiguration.queryParameters.id = "https://graph.microsoft.com/beta/groups/{other-group-id}";
});
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph_beta import GraphServiceClient
from msgraph_beta.generated.groups.item.rejected_senders.ref.ref_request_builder import RefRequestBuilder
from kiota_abstractions.base_request_configuration import RequestConfiguration
# To initialize your graph_client, see https://video2.skills-academy.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
query_params = RefRequestBuilder.RefRequestBuilderDeleteQueryParameters(
id = "https://graph.microsoft.com/beta/groups/{other-group-id}",
)
request_configuration = RequestConfiguration(
query_parameters = query_params,
)
await graph_client.groups.by_group_id('group-id').rejected_senders.ref.delete(request_configuration = request_configuration)