Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Call Instructions:

  1. This interface is used to create a new confluence user

  2. This interface can only be called by system administrators

  3. Username (login name) must not contain uppercase letters

  4. The newly created user belongs to the confluence-user group by default


Interface Information

Name

Create a new user

Address

/rest/tools/1.0/api/user/create

Method

POST

Return Type

Json

Authentication

Basic,token

Header Parameter

Parameter name

Required

Parameter type

Description

ContentType

Y

String

application/json

body Parameters

Parameter name

Required

Parameter type

Description

name

Y

String

username

fullName

Y

String

full name

email

Y

String

email

password

Y

String

password

groups

N

String[]

List of group names. Add the created user to the group in the list, and join the confluence-user group by default.

return value format

Field

Type

Description

code

int

Appendix - Code

msg

String

data

String

{

    "name":"user name",

    "key":"user key",

    "fullName":"full name",

    "email":"email"

}


Example Postman call


Example body request parameters:

{
    "name": "amy",
    "fullName": "t-amy",
    "email": "amy@shdsd.com",
    "password": "123456"
}

Example return value

{
    "code": 0,
    "msg": "Success",
    "data": {
        "name": "amy",
        "key": "4028d02582446b9601824879b75d0000",
        "fullName": "t-amy",
        "email": "amy@shdsd.com"
    }
}

  • No labels