<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D50Z00008G7VUISA3Okta Classic EngineIntegrationsAnswered2024-03-25T19:05:32.000Z2015-12-17T12:21:08.000Z2017-05-22T20:24:20.000Z
getting application id using name
Hi

The API in AppInstanceApiClient allow us to search application instance using Id or status but not name. Is there an API which will accept application instance name as input and return the Id of it?

 

I need it because in custom application to request application access, users will see the application name and after selecting it, the code should be able to lookup for that appInstance in Okta using name and fetch Id and then the application assigning API will accept the Id and complete assignment.

 

Thanks and Regards,

Sameer Joshi

  • While we don't have a direct API call that does this, you should be able to achieve this with a series of calls: 
    • Call the List Applications API method (returns JSON data structures that have info about apps)
    • Enumerate through the list and parse on name or label
    • This gives you the JSON data structure for the particular app
    • Once you get the matching JSON data structure, retrieve the ID from it
     For more details about the app data model, see this: http://developer.okta.com/docs/api/resources/apps.html#application-user-model
    Expand Post
This question is closed.
Loading
getting application id using name