When you run the query, there are several workspaces listed with their properties and then the Users property has subproperties of AccessRight and UserPrincipalName. I’d like to line up the workspace name and user properties.
That’s pretty much what I need, but the Users seemed to be a subproperty of the main object:
Users :
AccessRight UserPrincipalName
Admin user1
If you run just the $activeworkspaces variable without the loop, it returns it as ‘Users’ with its own sub-properties of ‘AccessRight’ and ‘UserPrincipalName’. The ‘UserPrincipalName’ is what I need to be listed with the workspace name.