Use this API to get back a single custom attribute from a OneLogin account.
Resource URL
https://<subdomain>.onelogin.com/api/2/users/custom_attributes/:idHeader Parameters
Authorization required string | Set to Set The access token must have been generated using an API credential pair created using the scope required to call this API. This API can be called using any one of the following scopes: |
Resource Parameters
id required integer | Set to the If you don't know the custom attribute's |
Sample Responses
- 200 OK
- 401 Unauthorized
- 404 Not Found
{
"shortname": "personalemail",
"position": 1,
"id": 87846,
"name": "Personal Email"
}Typically, this error means that your access token value is invalid.
{
"message": "Unauthorized",
"name": "UnauthorizedError",
"statusCode": 401
}{
"message": "The resource with the given id could not be found",
"name": "NotFoundError",
"statusCode": 404
}Postman Collection
Replace sample variables indicated by {{ }} with your actual values.
Have a Question?
Found a problem or a bug? Submit a support ticket.
Looking for walkthroughs or how-to guides? Check out our Knowledge Base.
Have a product idea or request? Share it in our Ideas Portal.