Product: PowerShell Universal
Version: 5.5.4Hi,
I have just setup SAML2 and I can authenticate in however it states I have no permissions. I have followed the SAMl2 guide and when I have assigned the Administrator Role to my Entra Group ID and Type, I can see it states group ID under ‘My Identity’. It states this as my role but not with any other account I login with.
I have no idea why it wont give me the admin role.
Can anyone provide some assistance, we have never got this working.
I have tried with the URL - http://schemas.microsoft.com/ws/2008/06/identity/claims/groups and groups
Recommended Answer
I have figured this out now.
The guide that states ‘If you select Groups assigned to the application, ensure that you check the Emit groups as role claims value. This setting requires a paid Entra ID plan.’
I unchecked this and it worked correctly. The URL ended in /roles not /groups when this was checked.
I had a similar issue with Windows Authentication. I was using a custom role that inherits another role (nested role).
Make sure you review this section of the docs - https://docs.powershelluniversal.com/security/security#users-with-many-groups
Also, I noticed some strange behavior with ‘External Accounts’ and role assignments. When a user signs in via Windows SSO and receives their role through claim assignment, it does not list this role on the Identities page, however the user does receive the role. I’m not sure if this is a visual bug or intended, but I spent a day diagnosing this. You should verify this by using a secondary account, giving yourself permission to the admin page, and viewing your roles under ‘My Identity’
Hey,
Thank you for this, I have tried that and it did not work.
Just for awareness, my Entra Enterprise App is set to only send the groups assigned to the app which is just 1 group at the moment.
I do not get any of those errors outlined.
Hi @AnonymousUser,
just to be sure: how do you map the Group Id to the role in PSU?
Are you sure that the claim is configured in the right way (whether role or group claim, type like GUID, sAMAccountName, …) besides needs to be assigned to the app?
Do you have some screenshot?
We map the roles directly in the roles’ .ps1 file to be more flexible.
Best,
Matthias