Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.
Permission type
Least privileged permissions
Higher privileged permissions
Delegated (work or school account)
User.ReadWrite
User.ReadWrite.All
Delegated (personal Microsoft account)
User.ReadWrite
Not available.
Application
Not supported.
Not supported.
HTTP request
POST /me/profile/certifications
POST /users/{id | userPrincipalName}/profile/certifications
In the request body, supply a JSON representation of the personCertification object.
The following table shows the properties that are possible to set when creating a new personCertification object in a user's profile.
Property
Type
Description
allowedAudiences
String
The audiences that are able to see the values contained within the entity. Inherited from itemFacet. Possible values are: me, family, contacts, groupMembers, organization, federatedOrganizations, everyone, unknownFutureValue.
certificationId
String
The referenceable identifier for the certification.
// 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);
Important
Microsoft Graph SDKs use the v1.0 version of the API by default, and do not support all the types, properties, and APIs available in the beta version. For details about accessing the beta API with the SDK, see Use the Microsoft Graph SDKs with the beta API.
Microsoft Graph SDKs use the v1.0 version of the API by default, and do not support all the types, properties, and APIs available in the beta version. For details about accessing the beta API with the SDK, see Use the Microsoft Graph SDKs with the beta API.
// 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"
graphmodels "github.com/microsoftgraph/msgraph-beta-sdk-go/models"
//other-imports
)
requestBody := graphmodels.NewPersonCertification()
certificationId := "KB-1235466333663322"
requestBody.SetCertificationId(&certificationId)
description := "Blackbelt in Marketing - Brand Management"
requestBody.SetDescription(&description)
displayName := "Marketing Blackbelt - Brand Management"
requestBody.SetDisplayName(&displayName)
thumbnailUrl := "https://iame.io/dfhdfdfd334.jpg"
requestBody.SetThumbnailUrl(&thumbnailUrl)
webUrl := "https://www.iame.io/blackbelt"
requestBody.SetWebUrl(&webUrl)
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=go
certifications, err := graphClient.Me().Profile().Certifications().Post(context.Background(), requestBody, nil)
Important
Microsoft Graph SDKs use the v1.0 version of the API by default, and do not support all the types, properties, and APIs available in the beta version. For details about accessing the beta API with the SDK, see Use the Microsoft Graph SDKs with the beta API.
// 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);
Important
Microsoft Graph SDKs use the v1.0 version of the API by default, and do not support all the types, properties, and APIs available in the beta version. For details about accessing the beta API with the SDK, see Use the Microsoft Graph SDKs with the beta API.
Microsoft Graph SDKs use the v1.0 version of the API by default, and do not support all the types, properties, and APIs available in the beta version. For details about accessing the beta API with the SDK, see Use the Microsoft Graph SDKs with the beta API.
<?php
use Microsoft\Graph\Beta\GraphServiceClient;
use Microsoft\Graph\Beta\Generated\Models\PersonCertification;
$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);
$requestBody = new PersonCertification();
$requestBody->setCertificationId('KB-1235466333663322');
$requestBody->setDescription('Blackbelt in Marketing - Brand Management');
$requestBody->setDisplayName('Marketing Blackbelt - Brand Management');
$requestBody->setThumbnailUrl('https://iame.io/dfhdfdfd334.jpg');
$requestBody->setWebUrl('https://www.iame.io/blackbelt');
$result = $graphServiceClient->me()->profile()->certifications()->post($requestBody)->wait();
Important
Microsoft Graph SDKs use the v1.0 version of the API by default, and do not support all the types, properties, and APIs available in the beta version. For details about accessing the beta API with the SDK, see Use the Microsoft Graph SDKs with the beta API.
Import-Module Microsoft.Graph.Beta.People
$params = @{
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"
}
# A UPN can also be used as -UserId.
New-MgBetaUserProfileCertification -UserId $userId -BodyParameter $params
Important
Microsoft Graph SDKs use the v1.0 version of the API by default, and do not support all the types, properties, and APIs available in the beta version. For details about accessing the beta API with the SDK, see Use the Microsoft Graph SDKs with the beta API.
# 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)
Important
Microsoft Graph SDKs use the v1.0 version of the API by default, and do not support all the types, properties, and APIs available in the beta version. For details about accessing the beta API with the SDK, see Use the Microsoft Graph SDKs with the beta API.