linkThe user object
Below you will find the various attributes for the user resource, as well as the user resource's relationships. To modify a relationship, you will need to use the canonical link for the given resource.
linkAttributes
linkdata.attributes.status
stringread onlyThe user's status, for filtering purposes and to ascertain overall status at-a-glance. An active user is a user that was created within the last 90 days, or has a license that has been created, validated, checked out, or checked in within the last 90 days. An inactive user is a user that has none of those traits. One of:
ACTIVE
,INACTIVE
, orBANNED
.This is not a replacement for license validation and is not a representation of the user's validity i.r.t. licenses. This is for status at-a-glance, but does not supplement or replace license validation. It has no effect on whether or not the user can authenticate or make requests.linkdata.attributes.role
stringThe role of the user.
For more in-depth information on user roles, and detailed resource permissions for each role, please see the roles and permissions section.Options
user
: A normal user of one or more of your products. Depending on account settings, they can have permission to manage their own resources, e.g. licenses and machines. They cannot manage other users' resources.support-agent
: An internal administrative user of your Keygen account, with a limited subset of permissions. Support Agents can read most resource data, but cannot create, update or delete resources.sales-agent
: An internal administrative user of your Keygen account, with a limited subset of permissions. Sales Agents can read most resource data, but can only create, update and delete specific resources.developer
: An internal administrative user of your Keygen account, with permission to manage all resources, but they cannot manage account billing.read-only
: An internal administrative user of your Keygen account, with permission to read all resources, except for account billing.admin
: An internal administrative user of your Keygen account, with permission to manage the entire account.
linkRelationships
linkdata.relationships.environment
individualent onlyThese relationships are only available for accounts on an Ent tier.The environment that the user belongs to.
Example object
{ "data": { "id": "a5a154d2-f026-40fa-bc8d-a7e3ca415298", "type": "users", "attributes": { "fullName": "John Doe", "firstName": "John", "lastName": "Doe", "status": "ACTIVE", "role": "user", "metadata": {}, "created": "2017-01-02T20:26:53.464Z", "updated": "2017-01-02T20:26:53.464Z" }, "relationships": { "account": { "links": { "related": "/v1/accounts/<account>" }, "data": { "type": "accounts", "id": "<account>" } }, "group": { "links": { "related": "/v1/accounts/<account>/users/a5a154d2-f026-40fa-bc8d-a7e3ca415298/group" }, "data": null }, "products": { "links": { "related": "/v1/accounts/<account>/users/a5a154d2-f026-40fa-bc8d-a7e3ca415298/products" } }, "licenses": { "links": { "related": "/v1/accounts/<account>/users/a5a154d2-f026-40fa-bc8d-a7e3ca415298/licenses" } }, "machines": { "links": { "related": "/v1/accounts/<account>/users/a5a154d2-f026-40fa-bc8d-a7e3ca415298/machines" } }, "tokens": { "links": { "related": "/v1/accounts/<account>/users/a5a154d2-f026-40fa-bc8d-a7e3ca415298/tokens" } } } }}