POST /accounts/{id}/users
As an organization administrator or account administrator, you can add users to the organization (organization administrator only) or to an account (account administrator and organization administrator).
After you create a user, they do not receive any notification. This is because many users do not need to access SAP Open Connectors directly. If the new user needs to access SAP Open Connectors, either provide them with the password that you entered or encourage them to reset their password.
Path Parameters
id | The unique identifier for an account within an organization. |
Request Body Parameters
firstName | The first name of the user. | Required |
lastName | The last name of the user. | Required |
email | The email address of the user. The email receives all password reset emails. | Required |
password | The assigned password for the user. | Required |
city | Optional | |
country | Optional | |
phone | Optional | |
postalCode | Optional | |
stateProvince | Optional | |
street1 | Optional | |
street2 | Optional | |
roles | An object containing role assignment, which can be:
|
Example Request
curl -X POST \ https://api.openconnectors.us2.ext.hana.ondemand.com/elements/api-v2/accounts/161268/users \ -H 'authorization: User sAfK7LJGNz5ZHcNrvdJvLI=f03WbTbH6aRKc0HJ3oOIi, Organization 58168435e3b9959a929eb04b6218b9a2' \ -H 'content-type: application/json' \ -d '{ "firstName": "First", "lastName": "Last", "email": "firstlast@cloud-elements.com",
"password": "password",
"roles":[ { "key": "admin" } ] } '
Example Response
[ { "id":160255, "createdDate":"2017-01-18", "firstName":"first", "password":"secured", "email":"
firstlast@cloud-elements.com
", "active":true, "lastName":"last", "accountExpired":false, "accountLocked":false, "credentialsExpired":false, "roles":[ ], "secret": "wGOw+75xqzBhek=/cP8wm3SPSNggfTZp1GFLtwfYzV0r""lastLoginDate":"2018-03-07", "accountNonLocked":true, "credentialsNonExpired":true, "accountNonExpired":true, "enabled":true, "fullName":"First Last" } ]