GetUserInfo

Applicable version: v4.5.1.190422 and above

Interface Function

Acquire user information.

Request Parameter
Parameter Type Remarks
staffCode String staffCode of user, the unique identification of the user
organizationCode String Organization that user belongs to, can be null, and query the current Tenant by default.This parameter is valid only when queried by staffCode.
userID String UserID of user, the unique identification of the user, generated by the vProfile system.
email String User's email. Applicable version:v4.5.6.190719.0 and above
SystemGroup bool Whether to get the Group created by the tenant level, the default false is not returned, only the current application created

[warning] warning

When staffCode, userId, and email have values, use staffCode as the condition to query, ignore userId and email, when userId and email have values, use userId as the condition to query and ignore email, otherwise use email as the query condition

Return Data Type
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; }
Input Sample

By StaffCode

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

By UserId

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

By Email

{
    "email":"demo@digitalmaker.com"
}
Return Sample
{
  "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 ""