首页 应用身份服务 EIAM 云身份服务 DeveloperAPI参考指南 API目录 账户管理 API GetUserIdByPhoneNumber - 通过手机号获取EIAM账户ID。

GetUserIdByPhoneNumber - 通过手机号获取EIAM账户ID。

更新时间: 2023-07-06 09:54:56

调用GetUserIdByPhoneNumber接口,通过手机号获取EIAM对应账户ID。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

当前API暂无授权信息透出。

请求语法

POST /v2/{instanceId}/{applicationId}/users/_/actions/getUserIdByPhoneNumber

请求参数

名称类型必填描述示例值
Authorizationstring

认证信息。 格式:Bearer ${access_token}。 示例:Bearer ATxxxx。

Bearer AT8csE2seYxxxxxij
instanceIdstring

实例ID。

idaas_ue2jvisn35ea5lmthk267xxxxx
applicationIdstring

应用ID

app_mkv7rgt4d7i4u7zqtzev2mxxxx
bodyobject

请求body。

phoneNumberstring

账户手机号。

156xxxxxxx

返回参数

名称类型描述示例值
object

响应结果。

userIdstring

账户ID。

user_d6sbsuumeta4h66ec3il7yxxxx

示例

正常返回示例

JSON格式

{
  "userId": "user_d6sbsuumeta4h66ec3il7yxxxx"
}

错误码

访问错误中心查看更多错误码。

变更历史

变更时间变更内容概要操作
暂无变更历史

错误码

HttpCodeError Code错误信息说明
400invalid_tokenAccess token is not validtoken无效
404application_not_foundApplication id not found: app_mkv7rgt4d7i4u7zqtzev2mxxxx应用不存在
403application_disabledApplication is disabled应用处于禁用状态
403application_api_disabledApplication api invoke disabled应用api接口开放开关未开启
403permission_deniedRequire scopes: [urn:alibaba:idaas:scope:user:manager_all]缺少API授权信息
400MissingParameter.PhoneNumberThe specified parameter: PhoneNumber is required!缺少Email参数
400ResourceNotFound.UserIdThe specified UserId resource: %s not found.账户ID不存在
500Internal Server ErrorInternal Server Error服务器内部错误
阿里云首页 应用身份服务 相关技术圈