slack-api - 如何使用 SCIM API 更新用户的当前状态?
问题描述
我正在尝试使用 SCIM API更新用户的当前状态字段。我知道可以使用users.profile.set
POST API更新此字段。如何profile
使用 SCIM API 更新用户对象的块?我查看了 SCIM API 支持的用户属性,但在此列表中没有看到profile
块或嵌套字段,例如status_text
, 。status_emoji
status_expiration
解决方案
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.
推荐阅读
- php - 购物车系统连接到数据库
- c++ - 多变量 randn 输出的解释
- php - 一个正常工作的网站突然开始抛出连接被拒绝
- python - Flask WTForms:提交后如何刷新页面
- payment-gateway - Cybersource 支付网关以低于 2000 美元的价格交易失败
- vega - 在 Vega-lite 或 Vega-embed 中缓存数据集
- python-3.x - Chatterbot 动态训练
- android - Calling setLayoutParams() in onLayout method of custom view group does nothing
- apache - HTACCESS 上的自定义重写
- r - R,plot.new 未因尝试向绘图添加文本而被调用