有没有办法在松弛时,我们可以在 Channels 用户列表中显示用户的全名,而不仅仅是用户名?由于我们有多个团队,而且并非所有人都熟悉用户从不同团队中挑选的用户名,因此除非有人去他们的 Profiles 或手动检查他们的全名,否则很难确定谁是谁 .
那么,有没有办法在列表中显示用户的完整用户名而不仅仅是用户名?
For the application side
就在这里 . 在松弛的窗口中,在您的用户名的左下角,有一个向上箭头 . 单击它,您将看到首选项选项 .
进入“首选项”后,单击“消息显示” . 在此选项中,您将找到“显示实名而不是用户名” . 确保选中此项并单击“完成” .
For the API Side
由于这是标记为Slack-api并且我不确定这是否是您所说的,在来自users.list方法的API的响应中,它将返回First / Last名称,因此您只需要无论你在做什么,都要用它 . Reference the Docs for the Slack API
{ "ok": true, "members": [ { "id": "U023BECGF", "name": "bobby", "deleted": false, "color": "9f69e7", "profile": { "first_name": "Bobby", "last_name": "Tables", "real_name": "Bobby Tables", "email": "bobby@slack.com", "skype": "my-skype-name", "phone": "+1 (123) 456 7890", "image_24": "https:\/\/...", "image_32": "https:\/\/...", "image_48": "https:\/\/...", "image_72": "https:\/\/...", "image_192": "https:\/\/..." }, "is_admin": true, "is_owner": true, "has_2fa": false, "has_files": true }, ... ]
}
如果您是 Channels 所有者,可以访问: Team settings -> Name Display -> Expand -> Display first and last names
Team settings -> Name Display -> Expand -> Display first and last names
2 回答
For the application side
就在这里 . 在松弛的窗口中,在您的用户名的左下角,有一个向上箭头 . 单击它,您将看到首选项选项 .
进入“首选项”后,单击“消息显示” . 在此选项中,您将找到“显示实名而不是用户名” . 确保选中此项并单击“完成” .
For the API Side
由于这是标记为Slack-api并且我不确定这是否是您所说的,在来自users.list方法的API的响应中,它将返回First / Last名称,因此您只需要无论你在做什么,都要用它 . Reference the Docs for the Slack API
}
如果您是 Channels 所有者,可以访问:
Team settings -> Name Display -> Expand -> Display first and last names