Change Azure AD Role Settings using Powershell

Dhillan Kalyan 56 Reputation points
2022-11-11T07:28:02.64+00:00

Hi

I have been asked by a client to change all the role settings for their PIM requirements.

I have been looking at this for a while trying to figure out whether this can be updated in bulk using PowerShell but I have not found anything as yet.

Is it possible to update these via PowerShell and what would the commands be?

Azure Role-based access control
Azure Role-based access control
An Azure service that provides fine-grained access management for Azure resources, enabling you to grant users only the rights they need to perform their jobs.
725 questions
Microsoft Entra
0 comments No comments
{count} votes

Accepted answer
  1. issau neshiri 76 Reputation points
    2022-11-11T07:33:04.043+00:00

    Hi i think these PowerShell commands on this Microsoft learn site can help you achieve your goal

    https://learn.microsoft.com/en-us/azure/active-directory/privileged-identity-management/powershell-for-azure-ad-roles


2 additional answers

Sort by: Most helpful
  1. Dhillan Kalyan 56 Reputation points
    2022-11-14T14:12:52.82+00:00

    I have written a script to update certain settings for the roles.

    You can view the script on my GitHub

    https://github.com/DhillanK/AZPIMSettings

    1 person found this answer helpful.

  2. Dhillan Kalyan 56 Reputation points
    2022-11-17T07:33:16.693+00:00

    Hi

    Is there a way to add notification settings via Powershell? I can't seem to find this anyway?

    0 comments No comments