https://api.bitsighttech.com/ratings/v2/users
Create a new user. See user roles.
Parameters
*Required.
Parameter | Values | |
---|---|---|
data * [Body] Provide user details. |
[Object] | |
status [Data] Set the account status for the user. |
[String] User account status.
|
|
group [Data] Assign an Access Control Group for the user. |
[String] Group unique identifier [group_guid ]. See GET: Access Control Groups. |
|
roles * [Data] Set a role for the user. Though this parameter accepts an array of role objects, only one role is accepted per request. |
[Array] User role slug name. See user roles.
Example:
|
|
friendly_name [Data] Provide the preferred name for the user. |
[String] | |
is_company_api_token [Data] Assign the user as a company API token. |
[Boolean] true = Assign the user as a company API token. |
|
is_available_for_contact [Data] Assign the user as a subscription contact when other users request to add companies to your portfolio. |
[Boolean] |
|
formal_name * [Data] Provide the user's full name. |
[String] | |
* [Data] Provide the user's email address. This is also used as part of their Bitsight platform login credentials. |
[String] Email address. | |
features [Data] Provide the user access to select features. |
[Array] Feature slug name and value parameter. See features.
Example:
|
|
value [Data] Specify if a feature is enabled. |
[Boolean] true Enable the selected feature. |
Example Request
curl -X POST --data-ascii '{"friendly_name": "Arnold","formal_name": "Arnold Brown","email": "arnold@actorsfilms.us"}' https://api.bitsighttech.com/ratings/v2/users -u api_token: --header "Content-Type:application/json"
Example Response
{ "guid":"11111111-aaaa-1111-aaaa-111111111111", "friendly_name":"Arnold", "formal_name":"Arnold Brown", "email":"arnold@actorsfilms.us", "group":{ "guid":"bbbbbbbb-2222-bbbb-2222-bbbbbbbbbbbb", "name":"All Companies" }, "status":"Created", "last_login_time":null, "joined_time":"2020-02-02T20:20:20Z", "roles":[ { "name":"User", "slug":"customer_user" } ], "is_available_for_contact":false, "is_company_api_token":false, "features":[ { "slug":"wfh-ro", "value":false, "can_update":true } ] }
Response Attributes
Field | Description | |
---|---|---|
guidString [ user_guid ] |
The unique identifier of this user. | |
friendly_nameString |
The preferred name of this user. | |
formal_nameString |
The full name of this user. | |
|
The email address of this user. | |
groupObject |
The Access Control Group of this user. | |
guidString [ group_guid ] |
The unique identifier of this group. | |
nameString |
The name of this group. | |
statusString |
The account status of this user. | |
last_login_timeString [ YYYY‑MM‑DDTHH:MM:SSZ ] |
The date and time when this user last logged in to the Bitsight platform. | |
joined_timeString [ YYYY‑MM‑DDTHH:MM:SSZ ] |
The date and time when this user was added to the Bitsight platform. | |
rolesArray |
The role of this user. See user roles. | |
nameString |
The name of this user role. | |
slugString |
The slug name of this user role. | |
is_available_for_contactBoolean |
true = This user is an Admin, Group Admin, or Portfolio Manager who has been assigned as a point-of-contact when other users request to add companies to the portfolio. |
|
is_company_api_tokenBoolean |
true = This user account is a company API token and is not an actual user. |
|
featuresArray |
User-managed feature details of this user. | |
slugString |
The slug name of this feature. | |
valueBoolean |
true = This feature is enabled for this user. |
|
can_updateBoolean |
true = This user can manage settings for this feature. |
- May 21, 2020: Published.
Feedback
0 comments
Please sign in to leave a comment.