# Steps to create connected app

In the Lightning Setup UI, search for *App Manager* and click on *New Connected App* and follow the below steps:&#x20;

**Basic Information section**:

○ All mandatory field's values are discussed below.

○ *Connected App Name* can be given as *protecto\_app*

○ *API Name* field gets auto filled.

○ *Contact Email* can be support email of organization.

![](/files/KwEUz7IwFDasUjOpD9Id)

&#x20;

**API (Enable OAuth Settings) section**:

○ Check mark *Enable OAuth Settings,* to get more options for the same.

○ *Callback URL* can be set to anything, e.g.: [https://protecto.ai](https://protecto.ai/)

○ In *Selected OAuth Scopes* add *Manage user data via APIs* permission.

○ Check mark below fields:

▪ *Require Secret for Web Server Flow*

▪ *Require Secret for Refresh Token Flow*

![](/files/TE1FXk6eFTueP5T2aUg4)

○ Click on *Save* to save the connected app.

▪ We get this message: <mark style="color:red;">Changes can take up to 10 minutes to take effect. Deleting a parent org also deletes all connected apps with OAuth settings enabled.</mark>

▪ Click on *continue*

▪ Click on *Manage Consumer Details*

![](/files/WKOQN3jEyXOzASieYq0B)

▪ Use the verification code obtained via mail (of admin user) to verify.

▪ New screen opens containing Consumer Details.

▪ Copy the ***Consumer Key*** and ***Consumer Secret*** in a safe place, as it will be used later on.

▪ In the search box, search for *App Manager* and open the same. Find protecto\_app, and click the dropdown (right corner). Click on view.

&#x20;![](/files/fBN2VtJNlhUEGzaewpAn)

&#x20;

▪ In the view screen, scroll down to *Initial Access Token for Dynamic Client Registration* section, click Generate button for *Initial Access Token*

![](/files/ZSJ2lr1unPCUqD7o1Uwl)

&#x20;   •   Read the pop-up and click *OK.*

○ Search again for *Manage Connected Apps* in search box and click on the same

○ Find the newly created *protecto\_app* and click *edit* button ○

&#x20;In **OAuth policies**,&#x20;

▪ set *IP Relaxations* to *Relax IP restrictions*

▪ Set Permitted Users to *All users may self-authorize*.

![](/files/B7Y80y4pGW6Veoz9xixM)

○ Under Session Policies, set *Timeout Value* to *None.*

○ Save the same, and we are done creating the Connected app *protecto\_app*.

Now that we have created a connected app, Let's create a user with minimum access for running the Protecto product.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.protecto.ai/getting-started/protecto-overview/introduction/add-new-data-source/salesforce/create-connected-app-and-user/steps-to-create-connected-app.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
