Dans le corps de la demande, fournissez une représentation JSON de l’objet personCertification .
Le tableau suivant indique les propriétés qu’il est possible de définir lors de la création d’un objet personCertification dans le profil d’un utilisateur.
Propriété
Type
Description
allowedAudiences
Chaîne
Audiences qui peuvent voir les valeurs contenues dans l’entité. Hérité de itemFacet. Les valeurs possibles sont les suivantes : me, family, contacts, groupMembers, organization, federatedOrganizations, everyone et unknownFutureValue.
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Beta.Models;
var requestBody = new PersonCertification
{
CertificationId = "KB-1235466333663322",
Description = "Blackbelt in Marketing - Brand Management",
DisplayName = "Marketing Blackbelt - Brand Management",
ThumbnailUrl = "https://iame.io/dfhdfdfd334.jpg",
WebUrl = "https://www.iame.io/blackbelt",
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.Me.Profile.Certifications.PostAsync(requestBody);
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
PersonCertification personCertification = new PersonCertification();
personCertification.setCertificationId("KB-1235466333663322");
personCertification.setDescription("Blackbelt in Marketing - Brand Management");
personCertification.setDisplayName("Marketing Blackbelt - Brand Management");
personCertification.setThumbnailUrl("https://iame.io/dfhdfdfd334.jpg");
personCertification.setWebUrl("https://www.iame.io/blackbelt");
PersonCertification result = graphClient.me().profile().certifications().post(personCertification);
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph_beta import GraphServiceClient
from msgraph_beta.generated.models.person_certification import PersonCertification
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = PersonCertification(
certification_id = "KB-1235466333663322",
description = "Blackbelt in Marketing - Brand Management",
display_name = "Marketing Blackbelt - Brand Management",
thumbnail_url = "https://iame.io/dfhdfdfd334.jpg",
web_url = "https://www.iame.io/blackbelt",
)
result = await graph_client.me.profile.certifications.post(request_body)