Wrong permission listed for Create personAward beta endpoint

Akshat Agarwal 0 Reputation points
2024-04-19T06:46:31.95+00:00

I am able to create person award using New-MgBetaUserProfileAward command and an app registration which have application persmission "User.ReadWrite.All" and was able to create the award. However in documentation it is mentioned that Application permission is not supported for this endoint. Just wanted to understand if the documentation is not updated or I am missing anything ?

Documentation - https://learn.microsoft.com/en-us/graph/api/profile-post-awards?view=graph-rest-beta&tabs=http

Code Snippet -

Import-Module Microsoft.Graph.Beta.People

Connect_MGGraph -clientId "" -CertificateThumbprint ""

$params = @{

description = "Lifetime Achievement award from the International Association of Branding Managers"

displayName = "Lifetime Achievement Award For Excellence in Branding"

issuedDate = "Date"

issuingAuthority = "International Association of Branding Management"

thumbnailUrl = "https://iabm.io/sdhdfhsdhshsd.jpg"

webUrl = "https://www.iabm.io/"

}

New-MgBetaUserProfileAward -UserId $userId -BodyParameter $params

Thanks

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,618 questions
0 comments No comments
{count} votes