Is there anyway to get aggregate User with ... role For example App A = 3 roles (PO, PM, CS)
How to get user with PO role ?Thanks!
Hi Kittisak,
Unfortunately this is currently not an easy task in ODC, as system entities like Role and User_Role don't exist. OutSystems is planning on exposing the User model via an API but that is not available yet, and also no details are shared on how the API will look like.
The only way you can do this now is to use the CheckRole action of a role against a user. The CheckRole action cannot be used in an aggregate in ODC.
Regards,
Daniel
Thank you for your information. I will find another way to do.
Hi @Daniël Kuhlmann,
As per your post when and how can we access role and user Role table without ODC portal.
Vijay M.
You can not as I wrote, no public User Management API is available yet. It is expected to be released before the end of the year. Porbably in the form of a REST API, personally I don't think you get metadata tables as in O11.
Hey , as public API are released by outsystems , User and Access Management API - ODC Documentation , i have followed all the prerequisite but still not able to run API ,getting this error
Error: getaddrinfo ENOTFOUND
Hi,
If you need help, don't post in an existing thread. Create a new question.
When you have a question, then share all the details you have, so the community can effectively help you.
I have tested the new API, its easy to use and works. You probably didn't configure correct the base URL of the API, hence the 404 NOT FOUND. But this is just guess work, as you didn't provide any details, like a screenshot of your API configuration or an OML with your code.
The new User Management API is available to do what you asked:
https://success.outsystems.com/documentation/outsystems_developer_cloud/outsystems_language_and_elements/outsystems_apis/odc_rest_apis/
You would need the following method to get the application roles of a user:
https://success.outsystems.com/documentation/outsystems_developer_cloud/outsystems_language_and_elements/outsystems_apis/odc_rest_apis/user_and_access_management_api/#get-/identity/v1/users/-key-/application-roles
I am getting 401 error
in that case you did probably not follow all the correct steps, to obtain the endpoint to request the access token, or the access token you have is no longer valid.
Either way, without sharing more information, I can only guess.
is it fine to post access token here? , access token generated few hours ago only
i am trying to access this api
https://ODC_DOMAIN/api/identity/v1/application-roles
Did you find the solution? Can I help you?