codewerfer
Jun 05, 2023Copper Contributor
Status:
New
Graph API Presence through user/{UserPrincipalName}/presence
Most routes starting with /users/{...}/... allow id or UserPrincipalName to access the response object.
Like calendar, events, drive and so on. Even /users/{UserPrincipalName}/teamwork/installedApps is allowed.
But presence must have id and doesn't work with UserPrincipalName. This seams inconsistent to me.
Therefore, to keep it consistent:
Get access through /users/{id or UserPrincipalName}/presence.
var graphClient = new GraphServiceClient(requestAdapter);
var result = await graphClient.Users["{UserPrincipalName}"].Presence.GetAsync();
https://github.com/microsoftgraph/msgraph-sdk-dotnet/issues/1942
No CommentsBe the first to comment