Skip to main content

GetUserInfo

Get relevant information about the user

Description

  • Obtain information related to the user designated by the token.
  • user_roles returns a list of roles held by the user.
  • user_groups returns a list of groups to which the user belongs within the current workspace.

Method

GET

Request URL Format

/api/v0/userinfo

Params

Request URL Sample

GET https://api.xxx.com/api/v0/userinfo

Response Sample

{
"u_id": "現在のユーザ",
"username": "ユーザー名",
"email": "現在のユーザーのemailアドレス",
"profile_pic": "ユーザーのプロファイル画像の保存先",
"current_workspace_id": "現在使用しているワークスペースのID",
"is_ws_admin": true, //(bool whether the user is an administrator for the workspace; true indicates that the user is an administrator.)
"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_groups": [
{
"g_id": "5c5fd6c084f4be2574e2bcaf",
"group_name": "営業1課",
"group_id": "1101"
},
{
"g_id": "5c5fd6c084f4be2574e2bcb0",
"group_name": "A部",
"group_id": "1001"
},
{
"g_id": "5c5fa7da84f4be4250aaee28",
"group_name": "全社",
"group_id": "1000"
}
],
"last_login_datetime": "2022-10-19T02:48:30Z",
"user_code": "ユーザーコード"
}