I am working on okta integration with my application using rest api.
My requirement is I need to get information about user such as profile info, connected groups, connected apps, assigned admin roles.
Currently, I am fetching information by below steps
- call /users endpoint to get userID
- call /users/uid/groups endpoint to get all groups connected to user
- call /users/uid/apps endpoint to get all apps connected to user
- call /users/uid/roles endpoint to get all roles assigned to the user
From above steps, I get all required information but it requires 3/4 calls which hits the performance of application.
Any way or suggestion to get above information in minimum calls or in less time?