Hello Schellner, Toni,
Thank you for reaching out to Microsoft Support!
It looks like you’re encountering a common issue with the Microsoft Graph API when trying to set the presence status message for another user. The error message “Cannot set the presence of another user” typically indicates a limitation or permission issue.
Here are a few key points to consider:
- Permissions: Ensure that you have the correct permissions. For setting the presence status message, you need the
Presence.ReadWrite
permission for delegated scenarios orPresence.ReadWrite.All
for application scenarios. - Delegated vs. Application Permissions: The API call to set the presence status message for another user requires application permissions (
Presence.ReadWrite.All
). Delegated permissions (Presence.ReadWrite
) are not sufficient for this operation.
You cannot use Graph Explorer to set the presence of another user. Please use Application permissions to set the presence of another user.
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.