YouTrack InCloud 7.0 Help

POST User

POST /admin/user

Create a new user account or update an existing user account. User is identified by login name. New user account will be created, if there is no existing user account with the given login name.

POST /rest/admin/user?{login}&{fullName}&{email}&{jabber}&{password}

Parameters:

NameTypeDescription
loginstringLogin name of a user to be created. Required.
fullNamestringUser full name (optional).
emailstringUser email (required for new user).
jabberstringUser jabber account (optional).
passwordstringPassword for the new user. If skipped, by default the new user account will be created with auto-generated password. Please note, that you can use this parameter only if you have Low-level Administration permissions.

Sample

Request:

HTTP POST: /admin/user?login=lenin&fullName=Vladimir+Ilyich+Ulyanov&email=lenin@cremlin.su&lenin@gmail.com

Response:

<user login="lenin" fullName="Vladimir Ilyich Ulyanov" lastAccess="21 Jan 1924 17:43" email="lenin@cremlin.su" jabber="lenin@gmail.com" groupsUrl="http://localhost:8080/charisma/rest/admin/user/lenin/group/" rolesUrl="http://localhost:8080/charisma/rest/admin/user/lenin/role/"/>
Last modified: 29 September 2016