Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Page Properties
hiddentrue
idrDOC

Product Version
Report Note
AssigneeMartin

Resources & Remarks

  • Version 2.4 - options" ...  "synchronousContentAnalysis": true (OKTO-4309)

Modification History

NameDateProduct VersionAction
Antje08 FEB 20212.4New page properties macro.
Antje12 FEB 20212020 WinterrDOC


...

As of Versionproduct version 2020 Winter | component version 1.0
Request MethodPOST
Response FormatJSON
Description


Excerpt
Creates a new user with the given properties.


Required user role: YUUVIS_TENANT_ADMIN

The properties for the new user are passed in JSON format. In the response, the user ID is returned again in JSON format.

The only required parameter is username, but the parameter email is recommended. The specified email address is used for invitation after creation and in the scenario of a forgotten password.

The option to disable a user is the recommended alternative instead of a deletion. The username might be required for compliance issues.

New users are forced to set a new password while following the link in the invitation email as well as to update his user data, as can be seen in the Required User Actions in this Keycloak add user dialog.

Image RemovedThe user is created with the Keycloak settings shown in the screenshot below (click to enlarge). The first steps the created user has to do are under Required User Actions the entries Update Password and Update Profile. Hence, the new user has to register by setting a password and other user data. An  invitation via email guides the new user to the registration portal.

Image Added

yuuvis® Momentum client as reference implementation displays the user's name in the following format: lastName, firstName (username).

Meaning of the response status codes:


HTTP Status CodeMeaning
201 CREATEDSuccessful, the user with has been created with the specified properties.
401 UNAUTHORIZEDThe call was unauthorized.


Request Example

Will be introduced with Release Candidate 1.1.0-rc2: If the password is not set, but email and the withInvitation call parameter is given with true, an e-mail invitation is sent by Keycloak to the given address.

Panel

POST /api-tm/admin/users?withInvitation%20=true HTTP/1.1

{
  "email": "example@exampleprovider.de"
  "username":: "mrexample",
, "firstName":: "Examplename",
, "lastName":: "Examplesurname",
  "roles": ["role1","role2"],
  "enabled": true,
  "password": "asecurepassword"

}


Response Example


Panel

{
  "id": "a00a0bb1-1234-5c66-7890-00fbb1c1a222"
}