GetUserInfo

适用版本:v4.5.1.190422及以上

接口描述

获取 user信息

参数类型
参数 类型 说明
staffCode String staffCode of user, 用户的唯一标识
organizationCode String 用户所属的organization,可为空,默认查询当前Tenant。只有按 staffCode 查询时该参数有效。
userID String UserID of user, 用户的唯一标识, 由vProfile系统生成
email String 用户邮箱. 适用版本:v4.5.6.190719.0及以上
SystemGroup bool 是否获取Tenant级别创建的Group,默认false不返回,只返回当前Application创建的

[warning] 注意

当staffCode, userId, email都有值时以staffCode为条件查询, 忽略userId和email, 当userId和email都有值时以userId为条件查询忽略email, 否则使用email为查询条件

返回参数类型
public string StaffName { get; set; }
public string StaffId { get; set; }
public string StaffCode { get; set; }
public string TenantId { get; set; }
public string Email { get; set; }
public string Phone { get; set; }
public List<string> Roles { get; set; }
public List<string> Groups { get; set; }
public List<CurrentMenu> Menus { get; set; }
public string Avatar { get; set; }
public Dictionary<string, object> UserInfo { get; set; }
输入示例

By StaffCode

{
    "staffCode": "##190111031015539",
    "organizationCode":""
}

By UserId

{
    "userId":"3a920db8-695c-4ca1-934b-ab47bd871cd8"
}

By Email

{
    "email":"demo@digitalmaker.com"
}
返回示例
{
  "StatusCode": 200,
  "Info": "Request (or process) succeeded",
  "Data": {
    "StaffName": "DemoUser",
    "StaffId": "3a920db8-695c-4ca1-934b-ab47bd871cd8",
    "StaffCode": "##190111031015539",
    "TenantId": "DemoTenant",
    "Email": "demo@digitalmaker.com",
    "Phone": "888",
    "Roles": [
      "AppDesign",
      "AppAdmin",
      "ReleaseManager",
      "Test",
      "Test5"
    ],
    "Groups": null,
    "Menus": null,
    "Avatar": null,
    "UserInfo": {
      "Email": "demo@digitalmaker.com",
      "FirstName": null,
      "LastName": null,
      "OrganizationCode": "DemoTenant",
      "Phone": "888",
      "MobileNum": "",
      "GUID": null,
      "UserName": "DemoUser",
      "ActiveFlag": true,
      "CreateDate": "2019-01-11T07:10:15.938Z",
      "UserID": "3a920db8-695c-4ca1-934b-ab47bd871cd8",
      "Devices": null,
      "ActivationFlag": true,
      "StaffCode": "##190111031015539",
      "LastBatchNo": "",
      "LastUpdate": "2019-01-11T07:10:15.938Z",
      "Avatar": null
    }
  }
}
© Digital Maker Product Team all right reserved,powered by Gitbook该文件修订时间: 2023-02-02 10:40:12

results matching ""

    No results matching ""