Possibility of changing user settings in azure AD via graph api/powershell

Ole Friis Nielsen 111 Reputation points
2021-09-14T12:53:01.533+00:00

I would like to change the user settings in azure via powershell/graph api/azure cli.

The settings I'm looking to change can be found in Azure AD -> User settings. (the 3 toggles that are found on the page)

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,666 questions
0 comments No comments
{count} votes

Accepted answer
  1. Vasil Michev 96,161 Reputation points MVP
    2021-09-14T14:21:26.997+00:00

    Some of these settings can be managed via the Graph api endpoints, via:

    Authorization policy: https://learn.microsoft.com/en-us/graph/api/resources/authorizationpolicy?view=graph-rest-beta
    Permission grant policy (for app consents): https://learn.microsoft.com/en-us/graph/api/resources/permissiongrantpolicy?view=graph-rest-beta

    Via PowerShell, you can toggle the UsersPermissionToCreateLOBAppsEnabled and UsersPermissionToUserConsentToAppEnabled properties using Set-MsolCompanySettings.

    Others are not available or coming in the future.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful