Application services admin roles via API

Hello community,

We want to create an application service because we are trying to integrate a custom APP with Okta. We aim to pull certain information from users, groups, roles… and also retrieve log information such as sign-ins, MFA events and so on. We think that creating an Application is the best way to avoid using service accounts, bypassing, MFA, …

We also want to be able to auto-deploy de application and we are creating it via API. We did all the necessary steps but we are not able to retrieve information unless it has assigned some admin role. The problem is that we are not capable to add admin roles via API.

Could you please provide some insight about it? Is this the best way? How can we assign the admin role via API so we can auto-deploy the app?

Thank you, kind regards.

Can you check out the /oauth2/v1/clients/{clientId}/roles endpoint? That supports assigning admin roles to OAuth applications: Client Role Assignments

1 Like

Hi Andrea,

Thank you so much for your reply. It worked like a charm!

I don’t know if that endpoint is new or I missed when I was reviewing the documentation, but never tested it before.

Issue resolved!

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.