
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Accepted Solutions


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi,
you need the authentication token (https://docs.microfocus.com/itom/SMAX:2020.11/ConnectToRESTAPI) and with this you can use the URL https://<host>:<port>/rest/<tenant-id>/rms/AuthorizationPrincipalResourceJSON?filter=UserId='<upn>'
You receive a JSON and you can find an array "Roles" in this JSON with all roles of the user or group.
Hope this helps...
BR, Volker


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hello,
currently there is no way to fulfill your request. You cannot create a list of roles and see which users are assigned in SMA-X. Since we had a similar need, I wrote a small program using the REST API iterating over all users and storing the needed data in a separate database.
There might be an item on the roadmap concerning user management in SMA-X, but I am not sure.
BR, Volker


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hello,
What tables and relationships did you use when developing your application?


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi,
you need the authentication token (https://docs.microfocus.com/itom/SMAX:2020.11/ConnectToRESTAPI) and with this you can use the URL https://<host>:<port>/rest/<tenant-id>/rms/AuthorizationPrincipalResourceJSON?filter=UserId='<upn>'
You receive a JSON and you can find an array "Roles" in this JSON with all roles of the user or group.
Hope this helps...
BR, Volker


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
You mean that the query is not made with REST API but with SQL query? That is certainly possible, but I have not (yet) done a full reverse engineering of the database structure, so I can't make a recommendation there.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hello,
This capability is currently not supported. There is an idea opened and you can vote on it:
https://community.microfocus.com/t5/SMA-Idea-Exchange/Report-with-users-amp-Roles/idi-p/2746971
The API provided here is a private API and should not be used for reporting purposes. It is subject to change without notice and has not been designed/validated for extracting large amounts of data.
Direct database access is not recommended.
Best regards,.
Brindusa