Using Postman with your user credentials
You can Postman's OAuth 2.0 authentication mechanism to obtain a bearer token by logging in using your user credentials. This is similar to how Workbench's UI obtains the bearer token, and the token will have the same claims as your user.
In this example we will walk you through how to obtain a bearer toke using your user credential and call the Workbench API.
- Open Postman. You can download Postman here.
In this example we are going to make a
GET call to
/api/v1/users to get all the users. Set the operation to
GET and the url to
- Navigate to the
Authorizationtab and select
OAuth 2.0from the dropdown menu. Then click on
Get New Access Token
- Now you need to set the following parameters:
- Token Name: The name for your token
- Grant Type:
- Callback URL: The URL for Workbench UI
- Auth URL:
- Client id: Workbench's AppId
- Scope: empty
- State: A randomly generated GUID, you can use this Online GUID Generator
- Client Authentication:
Send client credential in body
- Click on
- You should be prompted for your user credential, after completing that step you will receive a bearer token.
- Scroll down and click on
- Click on send and you should get a list of users
Note: This token will expire in an hour, you need to click on
Request Tokentoken again to get a new token. Postman will save your parameters and client session so you will not be prompted to login again.