主Azure帐户持有人? [英] Main Azure account holder?

查看:87
本文介绍了主Azure帐户持有人?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我使用组织登录以非常有限的访问权限登录到azure。我看到自定义域也已经过验证,但我不知道。我如何找出哪个帐户是主要持有人?谢谢

So i'm logged in to azure with an organization login with very limited access. I see that the custom domain was also verified but i'm not aware of it. How can i find out which account is the main holder? thanks

推荐答案

您好my3cents,

Hi my3cents,

您可以使用Powershell通过"订阅"查询所有Azure AD用户所有者QUOT;角色。 

You can use Powershell to query all Azure AD users with the "subscription owner" role. 

尝试:

(Get-AzureRmRoleAssignment -RoleDefinitionId "8e3af657-a8ff-443c-a75c-2fe8c4bcb635" -Scope "/subscriptions/<your azure sub ID>" | where {(


_。ObjectType -EQ" user") - 和(
_.ObjectType -EQ "user") -and (


_。范围-EQ" / subscriptions /< your azure sub ID>")})|选择DisplayName,SignInName
_.Scope -EQ "/subscriptions/<your azure sub ID>") } ) | select DisplayName,SignInName

如果要从代码直接调用REST API,请使用Microsoft。授权/ roleAssignments REST API。



GET https://management.azure.com/{scope}/providers/Microsoft.Authorization/roleAssignments?api-version=2018-01-01-preview



{scope}将是订阅/<您的subscriptionId>在订阅级别获取roleAssignments。





这篇关于主Azure帐户持有人?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆