Skip to main content

Create a user

POST 

/v1/user-management

Creates a new user with specified permissions to access your log data. If you run this endpoint with the token of the main account, then you can perform actions on the main account or any sub-account within the main account by providing the sub-account’s accountID. If you run this endpoint with the token of the sub-account, then you can perform actions only on the given sub-account.

Note: Creating users through Logzio API requires email approval and activation of the request. To disable email verification for the API, contact the Logz.io support team. Please ensure to change the region in the URL to match your account's region.

Request

Body

    username stringrequired

    Possible values: Value must match regular expression ^[_A-Za-z0-9-\+]+(\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(\.[A-Za-z]{2,})$

    Email address used to sign in to Logz.io. This property cannot be updated. A new user will need to be created for each email address.

    fullName stringrequired

    The user's first and last name

    accountID int32required

    ID of the account attached to the user

    role string

    User role. Can be USER_ROLE_READONLY, USER_ROLE_REGULAR or USER_ROLE_ACCOUNT_ADMIN.

Responses

successful operation

Schema
    id int32

    ID of the user

Loading...