GET
名称 | 类型 | 必填 | 描述 |
Authorization | string | 是 | 值格式: Bearer {{access_token}} |
Content-Type | string | 是 | 固定值: application/json; charset=utf-8 |
参数名称 | 类型 | 描述 | 所需 scope |
sub | string | 用户唯一标识 | openid |
tid | string | 租户 ID | - |
alias_id | string | 用户别名 ID | - |
name | string | 姓名 | profile |
preferred_username | string | 登录用户名 | profile |
picture | string | 头像地址 | profile |
email | string | 邮箱 | email |
mobile | string | 手机号(含区号) | mobile |
department_ids | array<string> | 所属部门 ID 列表 | oneid.departments.read |
test | bool | 是否为测试账号 | - |
GET https://oauth2.account.tencentid.com/authz/oidc/v2/13579************24/userinfoAuthorization: Bearer {{access_token}}
{"sub": "13579************24","alias_id": "on_b893c*************************56","tid": "13580************87","name": "John Doe","preferred_username": "John Doe","picture": "https://xxxx","mobile": "+86 138********","email": "***@qq.com","test": false,"department_ids": ["13830************27"]}
错误码 | 描述 |
invalid_token | access_token 无效或过期 |
insufficient_scope | 令牌权限不足 |
文档反馈