In some scenario's you may need to create an API user for Byner. For example when connecting a third party app to Byner.
In this article:
Step 1: Create a Permission Set
Before we create the API user we have to create the right Permission Set for this user.
- From Salesforce Setup, use the Quick Find box to find Permission Sets.
- Click New.
- We suggest the following naming convention:
- Label: <App name> - Integration User Permissions
- API Name: <App name>_Integration_User_Permissions
- We suggest the following naming convention:
- Leave other fields as is and click Save.
Step 2: Add permissions to the Permission set
Each integration requires different permissions. Ensure you only set the required permissions for security reasons.
Example
- Open the Permission Set
- Scroll down and click System Permissions.
- Click Edit and select the following permissions:
- API enabled (almost always required in integration scenarios)
- Password Never Expires (almost always required in integration scenarios)
- Click Save.
Please refer to the specific integration documentation to see what permissions need to be granted.
Step 3: Create User
Now it's time to create a user. Make sure there is a license available for this user.
- In case User Management is activated for the org:
- Create a Permission set group via Salesforce Setup, and put the Permission set you've created for this API user in this Permission set group.
- Navigate to the Byner Permission Set Groups field on the User object (Salesforce Setup > Object manager > User > Fields & Relationships). Add the API name of the Permission set group in the picklist value set.
- Go back to Fields & Relationships, choose 'Field dependencies' and edit the dependency where the Byner Permission Set Groups field is the dependent field. Include the just added picklist value for the Byner - API profile and save.
- Navigate to Byner Setup > User management. Create a new user:
- Set the First Name to something meaningful, like '<app name>'.
- Set the Last Name to something meaninful, like 'API'.
- Use a valid email address, you'll need access to this email address.
- Use a meaningful username like '<appname>@byner.<yourorgname>'.
- Activate the Send welcome email checkbox.
- Choose Byner - API as profile, and select the just created Permission set group.
- Save.
- In case User Management is not activated for the org:
From Salesforce Setup, use the Quick Find box to find Users.- Click New User.
- Set the First Name to something meaningful, like '<app name>'.
- Set the Last Name to something meaninful, like 'API'.
- Use a valid email address, you'll need access to this email address.
- Use a meaningful username like '<appname>@byner.<yourorgname>'.
- Pick Salesforce Platform as User License.
-
Select a Profile.
Do NOT grant acces via profiles. When your Salesforce org is set up correctly, access is only granted through Permission Sets and Permission Set Groups. - Set the correct Language.
- Click Save.
- Optionally you can enter more information, but this is not required.
- Click New User.
Step 4: Activate User
Before you active the API user make sure you have assigned the all required Permission Sets (preferably via a Permission Set Group) and grant the user a Byner Package License when access to Byner is required. (This is automatically done when the user has been created via Byner User Management.
- Go to your mailbox and open the Byner Login Information email.
- Open the URL to set your password.
- When working with multiple Salesforce Orgs we advise to open this URL in an incognito window in your browser.
- Set your password and secret question.
- We advise to save your credentials to a password manager like LastPass.
- Don't forget to remember or save your secret question aswell.
- Set op MFA
- Set up a security token.
- You should also save this to your password manager.
Security token explained
When you access Salesforce from an IP address that’s outside your company’s trusted IP range using a desktop client or the API, you need a security token to log in. A security token is a case-sensitive alphanumeric code that you append to your password or entered in a separate field in a client application.
Your security token isn’t displayed in your settings or profile.
- From your personal settings, in the Quick Find box, enter Reset, and then select Reset My Security Token. Click Reset Security Token.
- The new security token is sent to the email address in your Salesforce personal settings.
You also receive a new security token email when you reset your password.
Congratulations
You have now set up an API user. Continue to open up access to Byner (Salesforce) by creating an External client credentials app.
Comments
0 comments
Please sign in to leave a comment.