自定义字段列表查询
POST
/api/v2/udfs/search
请求参数
Header 参数
Authorization
string
必需
示例值:
Bearer token
x-authing-userpool-id
string
用户池 ID
示例值:
59f86b4832eb28071bdd9214
Body 参数application/json
targetType
string
必需
dataType
string
必需
isBase
boolean
必需
page
integer
页数
limit
integer
每页显示条数
userVisible
boolean
可选
adminVisible
boolean
控制台是否可见
accessControl
boolean
可选
keyword
string
搜索关键字
示例
{
"targetType": "string",
"dataType": "string",
"isBase": true,
"page": 0,
"limit": 0,
"userVisible": true,
"adminVisible": true,
"accessControl": true,
"keyword": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://core.authing.cn/api/v2/udfs/search' \
--header 'Authorization: Bearer token' \
--header 'x-authing-userpool-id: 59f86b4832eb28071bdd9214' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
data
object
必需
count
object
必需
list
array [object {13}]
必需
示例
{
"code": 200,
"message": "获取成功",
"data": {
"count": {
"all": 7,
"userVisible": 0,
"adminVisible": 0
},
"list": [
{
"key": "name",
"label": "姓名",
"labelEn": "Name",
"description": "OIDC 标准字段",
"dataType": "STRING",
"options": null,
"userPoolId": "59f86b4832eb28071bdd9214",
"targetType": "USER",
"userVisible": true,
"adminVisible": true,
"accessControl": true,
"validateRules": null,
"isBase": true
},
{
"key": "username",
"label": "用户名",
"labelEn": "Username",
"description": "用户名,用户池内唯一,区分大小写",
"dataType": "STRING",
"options": null,
"userPoolId": "59f86b4832eb28071bdd9214",
"targetType": "USER",
"userVisible": true,
"adminVisible": true,
"accessControl": true,
"validateRules": [
{
"type": "UNIQUE",
"content": "",
"error": "邮箱值重复"
}
],
"isBase": true
},
{
"key": "nickname",
"label": "昵称",
"labelEn": "Nickname",
"description": "用户昵称,该字段不具备唯一性。",
"dataType": "STRING",
"options": null,
"userPoolId": "59f86b4832eb28071bdd9214",
"targetType": "USER",
"userVisible": true,
"adminVisible": true,
"accessControl": true,
"validateRules": null,
"isBase": true
},
{
"key": "givenName",
"label": "Given Name",
"labelEn": "Given Name",
"description": "OIDC 标准字段",
"dataType": "STRING",
"options": null,
"userPoolId": "59f86b4832eb28071bdd9214",
"targetType": "USER",
"userVisible": false,
"adminVisible": false,
"accessControl": true,
"validateRules": null,
"isBase": true
},
{
"key": "familyName",
"label": "Family Name",
"labelEn": "Famliy Name",
"description": "OIDC 标准字段",
"dataType": "STRING",
"options": null,
"userPoolId": "59f86b4832eb28071bdd9214",
"targetType": "USER",
"userVisible": false,
"adminVisible": false,
"accessControl": true,
"validateRules": null,
"isBase": true
},
{
"key": "middleName",
"label": "Middle Name",
"labelEn": "Middle Name",
"description": "OIDC 标准字段",
"dataType": "STRING",
"options": null,
"userPoolId": "59f86b4832eb28071bdd9214",
"targetType": "USER",
"userVisible": false,
"adminVisible": false,
"accessControl": true,
"validateRules": null,
"isBase": true
},
{
"key": "preferredUsername",
"label": "Preferred Username",
"labelEn": "Preferred Username",
"description": "OIDC 标准字段",
"dataType": "STRING",
"options": null,
"userPoolId": "59f86b4832eb28071bdd9214",
"targetType": "USER",
"userVisible": false,
"adminVisible": false,
"accessControl": true,
"validateRules": null,
"isBase": true
}
]
}
}
修改于 2022-01-14 11:57:49