首页 > 解决方案 > 如何使用 SCIM API 更新用户的当前状态?

问题描述

我正在尝试使用 SCIM API更新用户的当前状态字段。我知道可以使用users.profile.setPOST API更新此字段。如何profile使用 SCIM API 更新用户对象的块?我查看了 SCIM API 支持的用户属性,但在此列表中没有看到profile块或嵌套字段,例如status_text, 。status_emojistatus_expiration

标签: slack-apiscimslack-scim

解决方案


You cannot set presence using SCIM apis.
SCIM APIs for Users work only on User Attributes

User Attributes
Attributes are the details associated with a user's account. These are the details that someone would typically set in their profile (for example, by clicking the Edit Profile button in the Slack application).

https://api.slack.com/scim#scim-api-endpoints__users__user-attributes

To set 'User Presence' you'll need regular slack APIs but that would need the user's token.


推荐阅读