…
|
||
---|---|---|
.. | ||
Get-AADAdminRoleMembers.ps1 | ||
README.md |
README.md
Microsoft FastTrack Open Source - AAD PowerShell - Get a list of admin roles and their members
Dependencies
- Azure Active Directory PowerShell for Graph
Usage
This script is designed to display all of the members of the Azure AD Administrator Roles. You can filter by three different parameters. Either "-All" displaying all members from all Administrator Roles, "-UserPrincipalName" to find out which Roles a specific user is member of, or, "-RoleName" to display the members of a specific role group.
Requirements: Please install the Azure AD PowerShell Module, follow the instructions at the following link: https://aka.ms/AAau56t
.EXAMPLE
Get a list of all the members of all the Administrator Roles in Azure AD
.\Get-AADAdminRoleMembers.ps1 -Admin admin@contoso.onmicrosoft.com -All
.EXAMPLE
Get a list of all the roles a user is member of
.\Get-AADAdminRoleMembers.ps1 -Admin admin@contoso.onmicrosoft.com -UserPrincipalName user@contoso.onmicrosoft.com
.EXAMPLE
Display the members for a particular Adminitrator Role
.\Get-AADAdminRoleMembers.ps1 -Admin admin@contoso.onmicrosoft.com -RoleName "Power BI Service Administrators"
Applies To
- Azure Active Directory
Author
Author | Original Publish Date |
---|---|
Brian Baldock | 2020-01-14 |
Issues
Please report any issues you find to the issues list.
Support Statement
The scripts, samples, and tools made available through the FastTrack Open Source initiative are provided as-is. These resources are developed in partnership with the community and do not represent official Microsoft software. As such, support is not available through premier or other Microsoft support channels. If you find an issue or have questions please reach out through the issues list and we'll do our best to assist, however there is no associated SLA.
Code of Conduct
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
Legal Notices
Microsoft and any contributors grant you a license to the Microsoft documentation and other content in this repository under the MIT License, see the LICENSE file, and grant you a license to any code in the repository under the MIT License, see the LICENSE-CODE file.
Microsoft, Windows, Microsoft Azure and/or other Microsoft products and services referenced in the documentation may be either trademarks or registered trademarks of Microsoft in the United States and/or other countries. The licenses for this project do not grant you rights to use any Microsoft names, logos, or trademarks. Microsoft's general trademark guidelines can be found at http://go.microsoft.com/fwlink/?LinkID=254653.
Privacy information can be found at https://privacy.microsoft.com/en-us/
Microsoft and any contributors reserve all others rights, whether under their respective copyrights, patents, or trademarks, whether by implication, estoppel or otherwise.