You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
By using the grapAPI with the presence statusmessage function, i get the following error:
"Cannot set the presence of another user... Status: 401 Unauthorized"
To Reproduce in the graphAPI url: https://graph.microsoft.com/v1.0/users/[UserID]/presence/setStatusMessage Body: { "statusMessage": { "message": { "content": "Hey, this is a test", "contentType": "text" } } }
Expected behavior
Chaning the statusmsg in teams
Screenshots
The text was updated successfully, but these errors were encountered:
Hi @N3XPW , this is likely an issue with the Presence API.
Please post this on the Graph Q&A forum where the appropriate team will be able to help you out.
Thank you for reporting your concern. Unfortunately, we in the Graph Explorer team do not have any ownership of the APIs that are causing you issues. If you report this issue in the Microsoft Q&A forum, it will get routed to the appropriate team for them to triage. https://aka.ms/askgraph
This issue will now be closed. If you encounter any issues with Graph Explorer in the future, please feel free to open an issue.
Describe the bug
By using the grapAPI with the presence statusmessage function, i get the following error:
"Cannot set the presence of another user... Status: 401 Unauthorized"
I tried this with the graphapi over
https://developer.microsoft.com/en-us/graph/graph-explorer
and with the
Microsoft.Graph.Users.Actions
Powershell Module.
For both with my admin user that has the required consensts . (Presence.ReadWrite)
To Reproduce in Powershell
`Import-Module ActiveDirectory
Import-Module Microsoft.Graph.Authentication
Import-Module Microsoft.Graph.Users
Connect-MgGraph Presence.ReadWrite
$params = @{
statusMessage = @{
message = @{
content = "Hey, this is a test"
contentType = "text"
}
expiryDateTime = @{
dateTime = "2024-04-02T20:05:33.2079781"
timezone = "Europe/Berlin"
}
}
}
Set-MgUserPresenceStatusMessage -UserId "UserID" -BodyParameter $params
Disconnect-MgGraph`
To Reproduce in the graphAPI
url: https://graph.microsoft.com/v1.0/users/[UserID]/presence/setStatusMessage Body: { "statusMessage": { "message": { "content": "Hey, this is a test", "contentType": "text" } } }
Expected behavior
Chaning the statusmsg in teams
Screenshots
The text was updated successfully, but these errors were encountered: