Forum Discussion
Jeroen Bestebreurtje
Oct 10, 2018Copper Contributor
Enable Admin roles in O365 - Enable-PrivilegedRoleAssignment
Hi, I'm using Powershell to activate Admin roles in O365. Since a week the command below gives an error. Does anyone have an idea why it isn't working anymore? Command: Connect-PimService –User...
Matthew Roerig
Oct 12, 2018Copper Contributor
Hi Jeroen,
Try running Get-PrivilegedRoleAssignment without any parameters to see what it returns. Also run $Error[0] | Select * to see more detail on the exception. It almost looks like the query is returning null.
Jeroen Bestebreurtje
Oct 15, 2018Copper Contributor
Hi Matthew,
Thanks for your response, I've added two screenshots.
The command "Get-PrivilegedRoleAssignment" is returning the available Roles as expected.
- Matthew RoerigOct 15, 2018Copper Contributor
Jeroen,
The module has been updated on 10/3/2018, I would check to see if you have the latest version. Here is a link to the gallery for more details:
https://www.powershellgallery.com/packages/Microsoft.Azure.ActiveDirectory.PIM.PSModule/2.0.0.1762