Azure Active Directory Yönetici Rolleri | Güç kalkanı
Azure AD yönetici rolleri, Azure Active Directory yönetiminin çeşitli bölümlerine temsilci atamanıza olanak tanır.
Örnek olarak, Global Okuyucu rolünü kaynaklarınızı araştırması veya denetlemesi gereken ancak herhangi bir değişiklik yapması gerekmeyen herkese atayabilirsiniz.
Büyük kuruluşlarda, Azure AD öğelerini yönetme yetkisini uzman yöneticilere devretmek mantıklıdır. Yalnızca birkaç yöneticiye sahip küçük kuruluşlar bile Azure AD yönetici rollerini faydalı bulabilir.
Bu makalede PowerShell kullanarak aşağıdakileri nasıl yapacağınız gösterilmektedir:
- Tüm Azure Yönetici Rollerini listeleyin
- Belirli bir Azure Yönetici Rolüne sahip tüm kullanıcıları listeleyin
- Tüm kimlikler için atanan tüm Azure Yönetici Rollerini listeleyin
- Belirli bir kullanıcı için tüm Azure Yönetici Rollerini listeleme
Ama önce bilgilere görsellik kazandırmak için GUI’ye bir göz atalım.
Azure Portal'ı Kullanarak Azure Yönetici Rollerini Yönetme
Tüm rolleri görüntülemek ve rollere hangi kullanıcıların veya grupların atandığını görmek için Azure Portal'da oturum açın, Azure Active Directory'ye gidin ve Roller ve Yöneticiler'e tıklayın:
Bireysel bir kullanıcıya hangi rollerin atandığını görüntülemek için Kullanıcılar'a gidin, kullanıcıyı seçin ve Atanan Roller'i tıklayın:
PowerShell Kullanarak Azure Yönetici Rollerini Yönetme
Çoğu durumda Azure Active Directory'deki Yönetici Rollerini yönetmek için PowerShell'i kullanmak isteyebilirsiniz. PowerShell'in Azure'u yönetmek için iki önemli modülü vardır:
- Grafik için Azure AD PowerShell
- Windows PowerShell için Azure Active Directory Modülü (MSOnline)
Hangisini tercih edeceğiniz size kalmış. Bu makalede PowerShell için MSOnline modülünün kullanımı gösterilecektir.
Tüm kod örnekleri, Azure'a çalışan bir PowerShell bağlantınız olduğunu varsayar. PowerShell için MSOnline modülünün nasıl kurulacağını ve kullanılacağını anlamak için bu makaleyi okuyun.
Azure Yönetici Rollerine Genel Bakış
Öncelikle tüm Azure AD Yönetici Rollerine genel bir bakış atalım:
Get-MsolRole | Sort-Object Name | ft Name,ObjectID,descriptionBir tabloda güzel bir şekilde biçimlendirilmiş çıktı şu şekilde görünecektir:
Azure AD Yönetici Rolleri
| Role | ObjectId | Description |
|---|---|---|
| Application Administrator | 9b895d92-2cd3-44c7-9d02-a6ac2d5ea5c3 | Can create and manage all aspects of app registrations and enterprise apps. |
| Application Developer | cf1c38e5-3621-4004-a7cb-879624dced7c | Can create application registrations independent of the ‘Users can register applications’ setting. |
| Authentication Administrator | c4e39bd9-1100-46d3-8c65-fb160da0071f | Allowed to view, set and reset authentication method information for any non-admin user. |
| Azure DevOps Administrator | e3973bdf-4987-49ae-837a-ba8e231c7286 | Can manage Azure DevOps organization policy and settings. |
| Azure Information Protection Administrator | 7495fdc4-34c4-4d15-a289-98788ce399fd | Can manage all aspects of the Azure Information Protection product. |
| B2C IEF Keyset Administrator | aaf43236-0c0d-4d5f-883a-6955382ac081 | Can manage secrets for federation and encryption in the Identity Experience Framework (IEF). |
| B2C IEF Policy Administrator | 3edaf663-341e-4475-9f94-5c398ef6c070 | Can create and manage trust framework policies in the Identity Experience Framework (IEF). |
| B2C User Flow Administrator | 6e591065-9bad-43ed-90f3-e9424366d2f0 | Can create and manage all aspects of user flows. |
| B2C User Flow Attribute Administrator | 0f971eea-41eb-4569-a71e-57bb8a3eff1e | Can create and manage the attribute schema available to all user flows. |
| Billing Administrator | b0f54661-2d74-4c50-afa3-1ec803f12efe | Can perform common billing related tasks like updating payment information. |
| Cloud Application Administrator | 158c047a-c907-4556-b7ef-446551a6b5f7 | Can create and manage all aspects of app registrations and enterprise apps except App Proxy. |
| Cloud Device Administrator | 7698a772-787b-4ac8-901f-60d6b08affd2 | Full access to manage devices in Azure AD. |
| Company Administrator | 62e90394-69f5-4237-9190-012177145e10 | Can manage all aspects of Azure AD and Microsoft services that use Azure AD identities. |
| Compliance Administrator | 17315797-102d-40b4-93e0-432062caca18 | Can read and manage compliance configuration and reports in Azure AD and Office 365. |
| Compliance Data Administrator | e6d1a23a-da11-4be4-9570-befc86d067a7 | Creates and manages compliance content. |
| Conditional Access Administrator | b1be1c3e-b65d-4f19-8427-f6fa0d97feb9 | Can manage conditional access capabilities. |
| CRM Service Administrator | 44367163-eba1-44c3-98af-f5787879f96a | Can manage all aspects of the Dynamics 365 product. |
| Customer LockBox Access Approver | 5c4f9dcd-47dc-4cf7-8c9a-9e4207cbfc91 | Can approve Microsoft support requests to access customer organizational data. |
| Desktop Analytics Administrator | 38a96431-2bdf-4b4c-8b6e-5d3d8abac1a4 | Can access and manage Desktop management tools and services. |
| Device Administrators | 9f06204d-73c1-4d4c-880a-6edb90606fd8 | Device Administrators |
| Device Join | 9c094953-4995-41c8-84c8-3ebb9b32c93f | Device Join |
| Device Managers | 2b499bcd-da44-4968-8aec-78e1674fa64d | Deprecated – Do Not Use. |
| Device Users | d405c6df-0af8-4e3b-95e4-4d06e542189e | Device Users |
| Directory Readers | 88d8e3e3-8f55-4a1e-953a-9b9898b8876b | Can read basic directory information. Commonly used to grant directory read access to applications and guests. |
| Directory Synchronization Accounts | d29b2b05-8046-44ba-8758-1e26182fcf32 | Only used by Azure AD Connect service. |
| Directory Writers | 9360feb5-f418-4baa-8175-e2a00bac4301 | Can read and write basic directory information. For granting access to applications, not intended for users. |
| Exchange Service Administrator | 29232cdf-9323-42fd-ade2-1d097af3e4de | Can manage all aspects of the Exchange product. |
| External Identity Provider Administrator | be2f45a1-457d-42af-a067-6ec1fa63bc45 | Can configure identity providers for use in direct federation. |
| Global Reader | f2ef992c-3afb-46b9-b7cf-a126ee74c451 | Can read everything that a global admin can read but not update anything. |
| Groups Administrator | fdd7a751-b60b-444a-984c-02652fe8fa1c | Members of this role can create/manage groups, create/manage groups settings like naming and expiration policies, and view groups activity and audit reports. |
| Guest Inviter | 95e79109-95c0-4d8e-aee3-d01accf2d47b | Can invite guest users independent of the ‘members can invite guests’ setting. |
| Helpdesk Administrator | 729827e3-9c14-49f7-bb1b-9608f156bbb8 | Can reset passwords for non-administrators and Helpdesk Administrators. |
| Intune Service Administrator | 3a2c62db-5318-420d-8d74-23affee5d9d5 | Can manage all aspects of the Intune product. |
| Kaizala Administrator | 74ef975b-6605-40af-a5d2-b9539d836353 | Can manage settings for Microsoft Kaizala. |
| License Administrator | 4d6ac14f-3453-41d0-bef9-a3e0c569773a | Can manage product licenses on users and groups. |
| Lync Service Administrator | 75941009-915a-4869-abe7-691bff18279e | Can manage all aspects of the Skype for Business product. |
| Message Center Privacy Reader | ac16e43d-7b2d-40e0-ac05-243ff356ab5b | Can read security messages and updates in Office 365 Message Center only. |
| Message Center Reader | 790c1fb9-7f7d-4f88-86a1-ef1f95c05c1b | Can read messages and updates for their organization in Office 365 Message Center only. |
| Office Apps Administrator | 2b745bdf-0803-4d80-aa65-822c4493daac | Can manage Office apps cloud services, including policy and settings management, and manage the ability to select, unselect and publish ‘what’s new’ feature content to end-user’s devices. |
| Partner Tier1 Support | 4ba39ca4-527c-499a-b93d-d9b492c50246 | Do not use – not intended for general use. |
| Partner Tier2 Support | e00e864a-17c5-4a4b-9c06-f5b95a8d5bd8 | Do not use – not intended for general use. |
| Password Administrator | 966707d0-3269-4727-9be2-8c3a10f19b9d | Can reset passwords for non-administrators and Password Administrators. |
| Power BI Service Administrator | a9ea8996-122f-4c74-9520-8edcd192826c | Can manage all aspects of the Power BI product. |
| Power Platform Administrator | 11648597-926c-4cf3-9c36-bcebb0ba8dcc | Can create and manage all aspects of Microsoft Dynamics 365, PowerApps and Microsoft Flow. |
| Printer Administrator | 644ef478-e28f-4e28-b9dc-3fdde9aa0b1f | Can manage all aspects of printers and printer connectors. |
| Printer Technician | e8cef6f1-e4bd-4ea8-bc07-4b8d950f4477 | Can manage all aspects of printers and printer connectors. |
| Privileged Authentication Administrator | 7be44c8a-adaf-4e2a-84d6-ab2649e08a13 | Allowed to view, set and reset authentication method information for any user (admin or non-admin). |
| Privileged Role Administrator | e8611ab8-c189-46e8-94e1-60213ab1f814 | Can manage role assignments in Azure AD, and all aspects of Privileged Identity Management. |
| Reports Reader | 4a5d8f65-41da-4de4-8968-e035b65339cf | Can read sign-in and audit reports. |
| Search Administrator | 0964bb5e-9bdb-4d7b-ac29-58e794862a40 | Can create and manage all aspects of Microsoft Search settings. |
| Search Editor | 8835291a-918c-4fd7-a9ce-faa49f0cf7d9 | Can create and manage the editorial content such as bookmarks, Q and As, locations, floorplan. |
| Security Administrator | 194ae4cb-b126-40b2-bd5b-6091b380977d | Security Administrator allows ability to read and manage security configuration and reports. |
| Security Operator | 5f2222b1-57c3-48ba-8ad5-d4759f1fde6f | Creates and manages security events. |
| Security Reader | 5d6b6bb7-de71-4623-b4af-96380a352509 | Can read security information and reports in Azure AD and Office 365. |
| Service Support Administrator | f023fd81-a637-4b56-95fd-791ac0226033 | Can read service health information and manage support tickets. |
| SharePoint Service Administrator | f28a1f50-f6e7-4571-818b-6a12f2af6b6c | Can manage all aspects of the SharePoint service. |
| Teams Communications Administrator | baf37b3a-610e-45da-9e62-d9d1e5e8914b | Can manage calling and meetings features within the Microsoft Teams service. |
| Teams Communications Support Engineer | f70938a0-fc10-4177-9e90-2178f8765737 | Can troubleshoot communications issues within Teams using advanced tools. |
| Teams Communications Support Specialist | fcf91098-03e3-41a9-b5ba-6f0ec8188a12 | Can troubleshoot communications issues within Teams using basic tools. |
| Teams Service Administrator | 69091246-20e8-4a56-aa4d-066075b2a7a8 | Can manage the Microsoft Teams service. |
| User Account Administrator | fe930be7-5e62-47db-91af-98c3a49a38b1 | Can manage all aspects of users and groups, including resetting passwords for limited admins. |
| Workplace Device Join | c34f683f-4d5a-4403-affd-6615e00e3a7f | Workplace Device Join |
Tüm Yönetici Rollerinin ve bunlara dahil olan izinlerin ayrıntılı bir açıklaması için lütfen Microsoft'un resmi belgelerine bakın.
Belirli bir Azure Yönetici Rolüne Sahip Tüm Kullanıcıları Listeleme
Get-MsolRoleMember cmdlet'i belirli bir rolün üyelerini listeler. Rol GUID'ini tanımlamak için RoleObjectId'yi kullanır, bu nedenle önce Get-MsolRole cmdlet'ini kullanarak rol GUID'ini bulmanız gerekir (veya yukarıdaki tabloyu referans olarak kullanın).
Genel Yönetici (aslında 'Şirket Yöneticisi' olarak adlandırılır!) rolüne sahip tüm kullanıcıları listelemek için aşağıdaki PowerShell komutunu kullanın:
Get-MsolRoleMember -RoleObjectId 62e90394-69f5-4237-9190-012177145e10Bu komutun çıktısı şöyle görünebilir:
PS C:\> Get-MsolRoleMember -RoleObjectId 62e90394-69f5-4237-9190-012177145e10
RoleMemberType EmailAddress DisplayName isLicensed
-------------- ------------ ----------- ----------
User tycho.brahe@observatory.dk Tycho Brahe True
User jens.m.knudsen@observatory.dk Jens Martin Knudsen True
Tüm Kimlikler İçin Atanan Tüm Azure Yönetici Rollerini Listeleyin
Atanan tüm Azure Yönetici Rollerini listelemek için sonraki betiği kullanabilirsiniz. Çıktıyı Kılavuz yerine "gerçek" Rol adıyla güzel bir şekilde biçimlendirmek için bazı mantık gerekir:
$RolesCollection = @()
$Roles = Get-MsolRole
ForEach ($Role In $Roles){
$Members = Get-MsolRoleMember -RoleObjectId $Role.ObjectId
ForEach ($Member In $Members) {
$obj = New-Object PSObject -Property @{
RoleName = $Role.Name
MemberName = $Member.DisplayName
MemberType = $Member.RoleMemberType
}
$RolesCollection += $obj
}
}
Write-Output $RolesCollection | Sort-Object RoleName,MemberName | ft RoleName,MemberName,MemberTypeBu kodun çıktısı şuna benzer görünecek:
RoleName MemberName MemberType
-------- ---------- ----------
Company Administrator Tycho Brahe User
Application Administrator Jens Martin Knudsen User
Directory Synchronization Accounts On-Premises Directory Synchronization Service Account User
License Administrator Ole Roemer User
Belirli Bir Kullanıcıya İlişkin Tüm Azure Yönetici Rollerini Listeleme
Bireysel bir kullanıcıya (veya gruba) atanan Azure Yönetici Rollerini görüntülemek için önceki betikteki son kod satırını aşağıdakiyle değiştirerek çıktıya bir miktar filtreleme ekleyin:
Write-Output $RolesCollection | Where-Object MemberName -eq 'Tycho Brahe' | Sort-Object RoleName | ft RoleName,MemberName,MemberTypeÖzet
Umarım artık Azure Yönetici Rolleri aracılığıyla PowerShell'de yolunuzu iyi anlamışsınızdır. Umarım yukarıdaki yapı taşları, günlük yönetici görevlerinizi daha kolay ve daha az hataya açık hale getirmek için harika otomasyonlar oluşturmanıza yardımcı olabilir.
Otomasyon hakkında daha fazla fikir için PowerShell bölümümüze göz atın.


