Unfortunately, directly setting the presence state of another user through the Presence Services REST API is generally not allowed. This is because it's a privacy concern and could be misused.
Here are some alternative approaches to consider:
Presence Subscription: Instead of setting presence directly, you can subscribe to presence updates for the users you're interested in. This way, you'll receive notifications whenever their presence state changes.
User-Initiated Updates: Encourage users to update their presence states manually through your application or another interface. This gives them control over their own presence information.
Third-Party Integration: Some Presence Services might offer integrations with other platforms (like Microsoft Teams) that allow users to set their presence across different applications.
It's best to consult the specific documentation for the Presence Services you're using. They might have alternative methods for managing presence information programmatically.
If your profile shows "PM" (Product Manager), you might also consider reaching out to the development team behind the Presence Services to discuss your specific use case. They might be able to offer custom solutions or workarounds.
|