How to get the access token with python if Azure Active Directory Authentication(SSO) is enabled for uipath orchestrator

Hi,
we have enabled SSO for our Orchestrator and if we want to get the access token for API’s is there any other way to get the token instead of creating third-party application.

1 Like

You can with api calls
Refer this doc on how to get the authorisation and token id

Doc reference

Image reference

Video reference

Hope this helps

cheers @sai.krishna

Hi @Palaniyappan,
Thanks for your reply.
Here They are using API key which is not recommended showing in UiPath Documentation.
We have Registered an third party application with only userscope.

{
   "grant_type": "client_credentials",
   "client_id": "{app_id}",
   "client_secret": "{app_secret}",
   "scope": "{scopes}"
}

with this payload when we are hitting identity/connect/token api we are not getting token .
for the same application if we give Application scope then access token is generated.
Any help here.
Thanks