Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 984fd86

Browse filesBrowse files
author
Hubot
committed
Sync changes from upstream repository
1 parent d7f5104 commit 984fd86
Copy full SHA for 984fd86

File tree

Expand file treeCollapse file tree

1 file changed

+15
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+15
-0
lines changed
Open diff view settings
Collapse file

‎content/v3/users/administration.md‎

Copy file name to clipboardExpand all lines: content/v3/users/administration.md
+15Lines changed: 15 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@ http(s)://<em>hostname</em>/api/v3
1818

1919
## Create a new user
2020

21+
{{#warning}}
22+
23+
If an external authentication mechanism is used, the login name should match the
24+
login name in the external system. If you are using LDAP authentication, you should also
25+
[update the LDAP mapping](/v3/enterprise/ldap/#update-ldap-mapping-for-a-user)
26+
for the user.
27+
28+
{{/warning}}
29+
2130
POST /admin/users
2231

2332
### Parameters
@@ -27,6 +36,12 @@ Name | Type | Description
2736
`login`|`string` | **Required.** The user's username.
2837
`email`|`string` | **Required.** The user's email address.
2938

39+
The login name will be normalized to only contain alphanumeric characters or
40+
single hyphens. For example, if you send `"octo_cat"` as the login, a user named
41+
`"octo-cat"` will be created.
42+
43+
If the login name or email address is already associated with an account, the server will return a `422` response.
44+
3045
#### Example
3146

3247
<%= json \

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.