Azure 组声明返回对象 ID - 需要组名称

标签 azure azure-active-directory

一直在使用 Azure 进行单点登录。

对于组声明,在断言期间我们在响应期间仅看到安全组对象 ID。

e4feedb1-df0e-46ff-8a02-e63474015610

是否可以在响应中获取组名称而不是组对象 ID

最佳答案

如果(且仅当)相关群组是从本地 AD 同步的群组时,您可以将群组声明配置为包含本地 sAMAccountName 或本地SID。

Note: Including the display name is not supported. (Display names are not unique, and in most organization, any user is able to create and manage their own groups, making any sort of authorization decision based on group display names a very risky proposition.)

对于库或非库(即自定义)SAML 应用程序(即在企业应用程序下),可以通过 Azure 门户中的应用程序注册(应用程序注册 > token 配置)或直接在应用程序上进行发布组通过更新 optionalClaims 属性(例如通过 list 编辑器或 Microsoft Graph)来注册的 Application 对象。

Editing groups claim from the Azure portal

关于Azure 组声明返回对象 ID - 需要组名称,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59331693/

相关文章:

针对远程用户的 Azure Active Directory 身份验证

azure - 如何在 Windows Azure 中创建 CDN

azure - 为什么我的 Azure Function 在部署时设置为 `Disabled`?

azure - 用于通过 Azure AD 连接到 Azure SQL 数据库的连接字符串

sharepoint - 无法从 Azure AD 导入的用户获取用户属性

azure - AD B2C测试用户流程不允许选择应用注册

node.js - Azure 的 4 分钟 HTTP 请求超时是否适用于多部分格式数据文件上传?

c# - 表单和 Azure AD 身份验证

azure - 如何使用 postman 测试 AZURE ZipDeploy api?

java - 使用 Azure 目录进行身份验证并从数据库中获取有效的用户角色