Enable PIM assignment for a guest user in a specific directory
We use powershell to activate PIM for users, but when we change to a specific directory, the get-privilegedroleassignment cmdlet still lists the roles available in the "home" directory, rather than the directory that you're currently in..
connect-pimservice -TenantName <XXXX>
has no effect on the get-privilegedroleassignment command
Bart Michel commented
we have 2 tenants, 1 with the users and the other one with the resources, we use guest users in this second tenant, but enable a pim role with powershell isn't possible the Get-PrivilegedRoleAssignment is emty. please fix it