Skip to main content

GetUserInfoByAdmin

Get user related information (workspace admin only)

Description

  • Only workspace admins have access.
  • Obtain information for one user by specifying conditions, such as email, that can identify the user.

Method

GET

Request URL Format

/api/v0/users/userinfo

Params

Request URL Sample

GET https://api.xxx.com/api/v0/users/[email protected]

Payload

Content-Type : application/json

(Example)Obtain by specifying email

{
"email": "[email protected]", // User's email address registered in Hexabase
"exclusive_w_id": "624bea3a879f4e8d8b5dcc6c" // (Optional)Specify the target workspace ID when obtaining user information registered as a workspace-only user
}

(Example)Obtain by specifying user_code

{
"user_code": "sample",
"exclusive_w_id": "624bea3a879f4e8d8b5dcc6c" // (Optional)Specify the target workspace ID when obtaining user information registered as a workspace-only user
}

Response Sample

{
"u_id": "対象ユーザーID",
"username": "対象ユーザー名",
"email": "[email protected]",
"profile_pic": "対象ユーザーのプロファイル画像の保存先",
"confirmed": true, //("bool, Wether this user is confirmed")
"email_sent": true, //("bool, Wether an email was sent to this user")
"user_roles": [
{
"r_id": "システム内部のロールID",
"role_name": "ロール名ID1",
"role_id": "画面で入力されたロールID",
"p_id": "プロジェクトID1",
"application_id": "アプリケーションID",
"application_name": "アプリケーション名",
"application_display_order": 0
},
{
"r_id": "5e3ac99c393da500077068b0",
"role_name": "部長",
"role_id": "Manager1",
"p_id": "5e015f03285ab60007442e5e",
"application_id": "xxSystem",
"application_name": "バツバツシステム",
"application_display_order": 0
}
],
"user_code": "sample"
}