function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ikram Momin 16Ikram Momin 16 

How to get URL for OAuth Scopes APIs associated with Connected Applications

Hi,
I have a question regarding OAuth Scopes APIs associated with Connected Applications. I am unable to get URL for OAuth Scopes APIs anywhere on your website. Can you please help me with this.

Thanks
SwethaSwetha (Salesforce Developers) 
HI Ikram,
Can you elaborate on what you are looking for.

This example request includes the api, id, and web scopes. The scope values are separated with the space character, %20.

http://login.salesforce.com/services/oauth2/authorize? response_type=token& client_id=3MVG9lKcPoNINVBKV6EgVJiF.snSDwh6_2wSS7BrOhHGEJkC_& redirect_uri=http%3A%2F%2F2www.example.org%2Fqa%2Fsecurity%2Foauth%2Fuseragent_flow_callback.jsp& scope=api%20id%20web

Related: https://help.salesforce.com/s/articleView?id=sf.remoteaccess_oauth_tokens_scopes.htm&type=5
Ikram Momin 16Ikram Momin 16
Hi Swetha,

I have few OAuth2 Connected Apps created under the Administer -> Manage Apps -> Connected Apps. While enabling OAuth2, I have to select the Application Permissions that the connected app should support.

When I use the developer console and query the ConnectedApplication object, I do not see any attribute that lists the OAuth2 application permissions associated with the connected app.

Is there any way to fetch the application permissions associated with the connected app?

Thanks!