question

0rku5-0045 avatar image
0 Votes"
0rku5-0045 asked

Command not working: "Get-PrivilegedRoleAssignment"

Hello everyone,

I was thinking to create a script to enable my roles in the morning when logging in.

I'm connected to our tenant, installed and connected to the PIM service - then try to retrieve the role assignments it just bombs out.
It seems this stopped working around March? Did find some other entry in here but it wasn't helpful so basically 'reopen' this.

Error I'm getting:

Get-PrivilegedRoleAssignment

Get-PrivilegedRoleAssignment : An error occurred while processing this request.
At line:1 char:1
+ Get-PrivilegedRoleAssignment
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-PrivilegedRoleAssignment], DataServiceQueryException
+ FullyQualifiedErrorId : Microsoft.OData.Client.DataServiceQueryException,Microsoft.Azure.ActiveDirectory.PIM.PSModule.Cmdlets.GetPrivilegedRoleAssignments

using the portal I have no issues enabling my roles, but PS would be a bit quicker I guess...

thanks for any help
windows-server-powershell
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

0 Answers