Nov 29 2022 11:41 AM - edited Nov 29 2022 11:41 AM
We would like to allow owners to update their client secrets / certs but prevent them from modifying or adding API permissions. Is there a way to modify the default app registration owner role to do this?
Nov 30 2022 12:33 AM
Nov 30 2022 04:42 AM - edited Nov 30 2022 04:47 AM
Thank you for the response. That link is specific to enterprise apps. I'm looking for a way to scope permissions for owners of app registrations that they own (not all app registrations) to only be able to update their app registration's client secret / cert.
Nov 30 2022 08:39 AM
Dec 01 2022 10:50 AM
Dec 01 2022 11:47 AM
Think maybe I got it, it's in the Assign the custom role section of the article. So far testing is positive, however there is a syntax error there for anyone else who might find this thread. I was running into a problem with the -ResourceScope parameter. Per this GitHub article, -ResourceScope is not correct:
$roleAssignment = New-AzureADMSRoleAssignment -ResourceScope $resourceScope -RoleDefinitionId $roleDefinition.Id -PrincipalId $user.objectId
...should instead be
$roleAssignment = New-AzureADMSRoleAssignment -DirectoryScopeId $resourceScope -RoleDefinitionId $roleDefinition.Id -PrincipalId $user.objectId