Import or update users via API

Overview

You can use our GraphQL API to import your users, create new ones or update them automatically.

Importing or modifying users allows you to automate the management of your users to:

  • create your users in bulk,

  • synchronize your users between applications (i.e. user provisioning),

  • automate the creation of a user according to your needs,

  • update user information (username, password, group, ...),

  • modify the configuration of your users' communication channels

  • etc.

Prerequisites

API authentication uses temporary and revocable access keys (tokens). Please note that the lifetime of the key is 24 hours.

To generate your access key, please refer to this section.

Steps to follow

Importing your users

The userCreate resource of our GraphQL API allows you to specify all the information available when creating your users.

mutation MyMutation {
  userCreate(input: {lastName: "", email: "", password: "", roleId: "", userName: "", avatar: "", projectIds: "", firstName: ""})
}

Updating your users

The userUpdate resource of our GraphQL API allows you to update all the information of your users.

mutation MyMutation {
  userUpdate(input: {userId: "", firstName: "", lastName: ""})
}

Main information

Good practices

  • The user or users queries allow you to retrieve the information of the users you've created.

  • You can easily manage your users' skills with the following resources:

    • userSkillsAdd

    • userSkillsRemove

    • userSkillsSet

  • The userDelete resource allow you to delete a user if needed

Last updated

#147: HFE - Authenticated Messaging

Change request updated