Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X
Hi all,
How to fetch which user has access to which thing in an info table!
Thank you
Solved! Go to Solution.
I used the nested loop!
This way I was able to achieve the requirements!
Thank you for your support!
I think your best bet is maybe this: https://support.ptc.com/help/thingworx/platform/r9/en/index.html#page/ThingWorx/Help/Composer/Security/Users/AccessReports.html#
The other way, for a Thing, you can pull Visiblity/Permission info I think, which would give you Users and User Groups and you'd have to then determine who are in the User Groups.
Potentially it may not capture Collection level settings, or even inherited permissions
Hello @PaiChung,
There still isn't any way to use the Access Report through some API right?
I built my own kind of access report @MM_9023322 using the way PaiChung suggests. Getting all entities in a project and checking the visibility, runtime and design time permissions on each entitiy against a specific username or getting who has permissions for a specific thing.
Perhaps I did it in a roundabout way, but I felt it wasn't very performant as I had to do nested loops to get all of the information.
Regards,
Jens
The access report itself is based on 'Services' ie API calls.
Just have to discover which ones they are, you should be able to see them using the developer tools.
Great!
It is also true as Pai says, my tests showed that the Get"RunTime/DesignTime/Visibility"Permission services does not give you collection permissions. I can't recall if it showed inherited permissions though...
I think there are specific services to get both collection and inherited permissions, so you could probably use those to get the rest of your permissions.
Good luck!
Regards,
Jens
Just one additional note, if you ever need to get User Permissions based on the user that is logged in, those are available in the 'CurrentSession' services.