共用方式為


Assign Multiple Azure AD users to multiple roles in multiple subscriptions using Powershell

This is an interactive Azure Powershell script that allows you to add multiple users to multiple roles across multiple subscriptions.
Uses the Powershell GridView to allow you to multi-select users, roles and subscriptions.

  • Search Azure AD using display name search strings or email addresses to create a list of users to grant rights to.
  • Select multiple roles to apply.
  • Select multiple subscriptions to apply the changes to.

Click here --> Technet Script Center post
..
Update (15 Oct 2017): Added ability to search groups as well as users. Removed email address search.