Invite User
List Organization Invites
List Users
User Account Details
Deactivate User
Invite User
You can invite a user to join your Platform account using POST /account/invite/. Users currently will have the same scope and will upload apps and run assessments against the Account limits.
POSThttps://lab-api.nowsecure.com/invite/
curl -H "Authorization: Bearer ${API_TOKEN}" -H "Content-Type: application/json" -d '{"name": "Amanda", "email": "amanda@example.com", "group_refs": ["40c5892d-a47c-4cbe-b188-ac97eab99328"]}' -X POST "https://lab-api.nowsecure.com/invite/"
Header
Field | Type | Description |
Authorization |
String | Send header with value Bearer: ${API_TOKEN} to authenticate |
Body
Field | Type | Description |
String | The email address of the user to invite | |
name (optional) | String | The name of the user to invite |
group_ref | String | An array of group ref UUIDs to add the user to |
List Organization Invites
Organization admins can view a list of invites using GET /resource/invitation/. This will return the name and email of each user that has been invited to the organization.
GEThttps://lab-api.nowsecure.com/resource/invitation/
EXAMPLE:
curl -H "Authorization: Bearer ${API_TOKEN}" https://lab-api.nowsecure.com/resource/invitation/
Header
Field | Type | Description |
Authorization |
String | Send header with value Bearer: ${API_TOKEN} to authenticate |
List Users
View list of current Account users
GEThttps://lab-api.nowsecure.com/account/user/
EXAMPLE:
curl -H "Authorization: Bearer ${API_TOKEN}" -X GET https://lab-api.nowsecure.com/account/user/
Header
Field | Type | Description |
Authorization |
String | Send header with value Bearer: ${API_TOKEN} to authenticate |
User Account Details
Request user Account details
GEThttps://lab-api.nowsecure.com/account/user/:user_ref
EXAMPLE:
curl -H "Authorization: Bearer ${API_TOKEN}" \
"https://lab-api.nowsecure.com/account/user/23acg9a8-c335-a3e3-badb-4afa3a4323ae"
Header
Field | Type | Description |
Authorization |
String | Send header with value Bearer: ${API_TOKEN} to authenticate |
Route
Field | Type | Description |
user_ref |
String | UUID user ref to request information |
Deactivate User
Deactivate a user account
POSThttps://lab-api.nowsecure.com/resource/user/:ref/deactivate
EXAMPLE:
curl -H "Authorization: Bearer ${API_TOKEN}" \
https://lab-api.nowsecure.com/resource/user/:user_ref/deactivate
Header
Field | Type | Description |
Authorization |
String | Send header with value Bearer: ${API_TOKEN} to authenticate |
Route
Field | Type | Description |
user_ref |
String | UUID user ref to request information |
Comments
Article is closed for comments.