【问题标题】:How to resolve Azure Sql principal name formatted as guid@guid to a readable user name?如何将格式为 guid@guid 的 Azure Sql 主体名称解析为可读的用户名?
【发布时间】:2021-05-28 19:00:08
【问题描述】:

我正在查找一些 Azure SQL 安全警报,以显示“从 60 天内未出现的域登录”,但它以以下格式列出(不是实际标识符)

f96bd1cf-beb7-4e82-89cc-3d7e76f1cf3c@1ed9389a-f140-4cfd-9f02-c5a6a78c2770

如何将其解析为实际可读的用户名?

提前致谢

【问题讨论】:

标签: azure azure-sql-database sql-azure-alerts


【解决方案1】:

您可以尝试使用 PowerShell commandlet 来获取 ObjectId 详细信息,使用 Get-AzureADObjectByObjectId and Get-AzureADUserCreatedObject -ObjectId 如下:

在你的情况下 f96bd1cf-beb7-4e82-89cc-3d7e76f1cf3c@1ed9389a-f140-4cfd-9f02-c5a6a78c2770 :第一部分是id,第二部分是tenant

您的租户 ID 应显示在基本信息下。

进一步Get-AzureADUserCreatedObject cmdlet 获取用户在 Azure Active Directory (AD) 中创建的对象

【讨论】:

    猜你喜欢
    • 2021-11-06
    • 1970-01-01
    • 2022-10-06
    • 2015-10-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多