{
"targetType": "string",
"dataType": "string",
"isBase": true,
"page": 0,
"limit": 0,
"userVisible": true,
"adminVisible": true,
"accessControl": true,
"keyword": "string"
}
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 '{
"targetType": "string",
"dataType": "string",
"isBase": true,
"page": 0,
"limit": 0,
"userVisible": true,
"adminVisible": true,
"accessControl": true,
"keyword": "string"
}'
{
"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
}
]
}
}