添加租户成员
POST
/api/v2/tenant/{tenantId}/user请求参数
Path 参数
tenantId
string
租户 ID
示例值:
61e113fb9a411a84704ebf07
Header 参数
Authorization
string
Token
示例值:
Bearer Token
x-authing-userpool-id
string
用户池 ID
示例值:
61b95d6c96d42670da568408
Body 参数application/json
userIds
array[string]
必需
示例
{
"userIds": [
"string"
]
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
message
string
必需
data
object
必需
id
string
必需
createdAt
string
必需
updatedAt
string
必需
userPoolId
string
必需
name
string
必需
logo
string
必需
description
string
必需
css
string
必需
ssoPageCustomizationSettings
object | null
必需
defaultLoginTab
string
必需
defaultRegisterTab
string
必需
passwordTabConfig
object
必需
loginTabs
array[string]
必需
registerTabs
array[string]
必需
extendsFields
null
必需
users
array [object {34}]
必需
示例
{
"code": 200,
"message": "添加租户成员成功 , 新增成员 2 名, 已存在成员 1 名",
"data": {
"id": "61e113fb9a411a84704ebf07",
"createdAt": "2022-01-14T06:11:07.752Z",
"updatedAt": "2022-01-14T06:11:07.752Z",
"userPoolId": "61b95d6c96d42670da568408",
"name": "租户2",
"logo": "http://xxx.xxx.xxx/resources/pic/14bcc5bc.png",
"description": "12应用的租户",
"css": "/*\nEdit login page css\neg:\n.authing-guard-layout {\n background: black !important;\n}\nChange the background color\n*/",
"ssoPageCustomizationSettings": null,
"defaultLoginTab": "password",
"defaultRegisterTab": "email",
"passwordTabConfig": {
"enabledLoginMethods": [
"username-password",
"email-password",
"phone-password"
]
},
"loginTabs": [
"phone-code",
"password"
],
"registerTabs": [
"email",
"phone"
],
"extendsFields": null,
"users": [
{
"id": "61de777344ea0eb73bacd6db",
"arn": "arn:cn:authing:61b95d6c96d42670da568408:user:61de777344ea0eb73bacd6db",
"userPoolId": "61b95d6c96d42670da568408",
"photo": "https://files.authing.co/authing-console/default-user-avatar.png",
"email": null,
"emailVerified": false,
"phone": null,
"phoneVerified": false,
"unionid": null,
"openid": null,
"username": "sdfsdf",
"nickname": "为o哦哦哦",
"country": null,
"province": null,
"company": null,
"loginsCount": 0,
"lastIp": null,
"name": null,
"givenName": null,
"familyName": null,
"middleName": null,
"profile": null,
"preferredUsername": null,
"website": null,
"gender": "U",
"birthdate": null,
"zoneinfo": null,
"address": null,
"formatted": null,
"streetAddress": null,
"region": null,
"postalCode": null,
"city": null,
"blocked": false
},
{
"id": "61dd23ab23fa2bef23907756",
"arn": "arn:cn:authing:61b95d6c96d42670da568408:user:61dd23ab23fa2bef23907756",
"userPoolId": "61b95d6c96d42670da568408",
"photo": "https://files.authing.co/authing-console/default-user-avatar.png",
"email": null,
"emailVerified": false,
"phone": null,
"phoneVerified": false,
"unionid": null,
"openid": null,
"username": "fpowekfwe",
"nickname": null,
"country": null,
"province": null,
"company": null,
"loginsCount": 0,
"lastIp": null,
"name": null,
"givenName": null,
"familyName": null,
"middleName": null,
"profile": null,
"preferredUsername": null,
"website": null,
"gender": "U",
"birthdate": null,
"zoneinfo": null,
"address": null,
"formatted": null,
"streetAddress": null,
"region": null,
"postalCode": null,
"city": null,
"blocked": false
},
{
"id": "61de786b31d27307c7ce66c3",
"arn": "arn:cn:authing:61b95d6c96d42670da568408:user:61de786b31d27307c7ce66c3",
"userPoolId": "61b95d6c96d42670da568408",
"photo": "https://files.authing.co/authing-console/default-user-avatar.png",
"email": "112233@gmail.com",
"emailVerified": false,
"phone": "13100000001",
"phoneVerified": false,
"unionid": null,
"openid": null,
"username": "13100000001",
"nickname": null,
"country": null,
"province": null,
"company": null,
"loginsCount": 0,
"lastIp": null,
"name": null,
"givenName": null,
"familyName": null,
"middleName": null,
"profile": null,
"preferredUsername": null,
"website": null,
"gender": "U",
"birthdate": null,
"zoneinfo": null,
"address": null,
"formatted": null,
"streetAddress": null,
"region": null,
"postalCode": null,
"city": null,
"blocked": false
}
]
}
}
最后修改时间: 3 年前