[]
        
(Showing Draft Content)

UserApiV1

UserApiV1

[POST] /Manager/User/AddUsers

添加普通用户。

Request Body

Type: application/json-patch+json

RequestUserInfosParam

Example:

{
  "UserInfos": [
    {
      "Password": "password123456",
      "ExtendedPropertyList": [
        {
          "Value": "Tom",
          "PropertyName": "Mentor",
          "PropertyType": 0,
          "PropertyDescription": null
        },
        {
          "Value": "San Francisco",
          "PropertyName": "Address",
          "PropertyType": 0,
          "PropertyDescription": null
        }
      ],
      "UserName": "Bob",
      "FullName": "Bob Smith",
      "Email": "Bob@email.com",
      "ExtendedProperties": {
        "Mentor": "Tom",
        "Address": "San Francisco"
      }
    },
    {
      "Password": "password123456",
      "ExtendedPropertyList": [
        {
          "Value": "Tom",
          "PropertyName": "Mentor",
          "PropertyType": 0,
          "PropertyDescription": null
        },
        {
          "Value": "New York",
          "PropertyName": "Address",
          "PropertyType": 0,
          "PropertyDescription": null
        }
      ],
      "UserName": "Andy",
      "FullName": "Andy Brown",
      "Email": "Andy@email.com",
      "ExtendedProperties": {
        "Mentor": "Tom",
        "Address": "New York"
      }
    }
  ]
}

Type: application/json

RequestUserInfosParam

Example:

{
  "UserInfos": [
    {
      "Password": "password123456",
      "ExtendedPropertyList": [
        {
          "Value": "Tom",
          "PropertyName": "Mentor",
          "PropertyType": 0,
          "PropertyDescription": null
        },
        {
          "Value": "San Francisco",
          "PropertyName": "Address",
          "PropertyType": 0,
          "PropertyDescription": null
        }
      ],
      "UserName": "Bob",
      "FullName": "Bob Smith",
      "Email": "Bob@email.com",
      "ExtendedProperties": {
        "Mentor": "Tom",
        "Address": "San Francisco"
      }
    },
    {
      "Password": "password123456",
      "ExtendedPropertyList": [
        {
          "Value": "Tom",
          "PropertyName": "Mentor",
          "PropertyType": 0,
          "PropertyDescription": null
        },
        {
          "Value": "New York",
          "PropertyName": "Address",
          "PropertyType": 0,
          "PropertyDescription": null
        }
      ],
      "UserName": "Andy",
      "FullName": "Andy Brown",
      "Email": "Andy@email.com",
      "ExtendedProperties": {
        "Mentor": "Tom",
        "Address": "New York"
      }
    }
  ]
}

Type: text/json

RequestUserInfosParam

Example:

{
  "UserInfos": [
    {
      "Password": "password123456",
      "ExtendedPropertyList": [
        {
          "Value": "Tom",
          "PropertyName": "Mentor",
          "PropertyType": 0,
          "PropertyDescription": null
        },
        {
          "Value": "San Francisco",
          "PropertyName": "Address",
          "PropertyType": 0,
          "PropertyDescription": null
        }
      ],
      "UserName": "Bob",
      "FullName": "Bob Smith",
      "Email": "Bob@email.com",
      "ExtendedProperties": {
        "Mentor": "Tom",
        "Address": "San Francisco"
      }
    },
    {
      "Password": "password123456",
      "ExtendedPropertyList": [
        {
          "Value": "Tom",
          "PropertyName": "Mentor",
          "PropertyType": 0,
          "PropertyDescription": null
        },
        {
          "Value": "New York",
          "PropertyName": "Address",
          "PropertyType": 0,
          "PropertyDescription": null
        }
      ],
      "UserName": "Andy",
      "FullName": "Andy Brown",
      "Email": "Andy@email.com",
      "ExtendedProperties": {
        "Mentor": "Tom",
        "Address": "New York"
      }
    }
  ]
}

Type: application/*+json

RequestUserInfosParam

Example:

{
  "UserInfos": [
    {
      "Password": "password123456",
      "ExtendedPropertyList": [
        {
          "Value": "Tom",
          "PropertyName": "Mentor",
          "PropertyType": 0,
          "PropertyDescription": null
        },
        {
          "Value": "San Francisco",
          "PropertyName": "Address",
          "PropertyType": 0,
          "PropertyDescription": null
        }
      ],
      "UserName": "Bob",
      "FullName": "Bob Smith",
      "Email": "Bob@email.com",
      "ExtendedProperties": {
        "Mentor": "Tom",
        "Address": "San Francisco"
      }
    },
    {
      "Password": "password123456",
      "ExtendedPropertyList": [
        {
          "Value": "Tom",
          "PropertyName": "Mentor",
          "PropertyType": 0,
          "PropertyDescription": null
        },
        {
          "Value": "New York",
          "PropertyName": "Address",
          "PropertyType": 0,
          "PropertyDescription": null
        }
      ],
      "UserName": "Andy",
      "FullName": "Andy Brown",
      "Email": "Andy@email.com",
      "ExtendedProperties": {
        "Mentor": "Tom",
        "Address": "New York"
      }
    }
  ]
}

Responses

[200] OK

ResultDataBase

Type: [text/plain]

Example:

{
  "Result": false,
  "Message": "Error message.",
  "ErrorCode": 0,
  "MessageProperties": null
}

ResultDataBase

Type: [application/json]

Example:

{
  "Result": false,
  "Message": "Error message.",
  "ErrorCode": 0,
  "MessageProperties": null
}

ResultDataBase

Type: [text/json]

Example:

{
  "Result": false,
  "Message": "Error message.",
  "ErrorCode": 0,
  "MessageProperties": null
}

[POST] /Manager/User/AddWindowsUsers

添加域用户。

Request Body

Type: application/json-patch+json

RequestUserInfosParam

Example:

{
  "UserInfos": [
    {
      "Password": null,
      "ExtendedPropertyList": [
        {
          "Value": "Vivian",
          "PropertyName": "Mentor",
          "PropertyType": 0,
          "PropertyDescription": null
        },
        {
          "Value": "San Francisco",
          "PropertyName": "Address",
          "PropertyType": 0,
          "PropertyDescription": null
        }
      ],
      "UserName": "Alex",
      "FullName": null,
      "Email": null,
      "ExtendedProperties": {
        "Mentor": "Vivian",
        "Address": "San Francisco"
      }
    },
    {
      "Password": null,
      "ExtendedPropertyList": [
        {
          "Value": "Vivian",
          "PropertyName": "Mentor",
          "PropertyType": 0,
          "PropertyDescription": null
        },
        {
          "Value": "New York",
          "PropertyName": "Address",
          "PropertyType": 0,
          "PropertyDescription": null
        }
      ],
      "UserName": "Ellen",
      "FullName": null,
      "Email": null,
      "ExtendedProperties": {
        "Mentor": "Vivian",
        "Address": "New York"
      }
    }
  ]
}

Type: application/json

RequestUserInfosParam

Example:

{
  "UserInfos": [
    {
      "Password": null,
      "ExtendedPropertyList": [
        {
          "Value": "Vivian",
          "PropertyName": "Mentor",
          "PropertyType": 0,
          "PropertyDescription": null
        },
        {
          "Value": "San Francisco",
          "PropertyName": "Address",
          "PropertyType": 0,
          "PropertyDescription": null
        }
      ],
      "UserName": "Alex",
      "FullName": null,
      "Email": null,
      "ExtendedProperties": {
        "Mentor": "Vivian",
        "Address": "San Francisco"
      }
    },
    {
      "Password": null,
      "ExtendedPropertyList": [
        {
          "Value": "Vivian",
          "PropertyName": "Mentor",
          "PropertyType": 0,
          "PropertyDescription": null
        },
        {
          "Value": "New York",
          "PropertyName": "Address",
          "PropertyType": 0,
          "PropertyDescription": null
        }
      ],
      "UserName": "Ellen",
      "FullName": null,
      "Email": null,
      "ExtendedProperties": {
        "Mentor": "Vivian",
        "Address": "New York"
      }
    }
  ]
}

Type: text/json

RequestUserInfosParam

Example:

{
  "UserInfos": [
    {
      "Password": null,
      "ExtendedPropertyList": [
        {
          "Value": "Vivian",
          "PropertyName": "Mentor",
          "PropertyType": 0,
          "PropertyDescription": null
        },
        {
          "Value": "San Francisco",
          "PropertyName": "Address",
          "PropertyType": 0,
          "PropertyDescription": null
        }
      ],
      "UserName": "Alex",
      "FullName": null,
      "Email": null,
      "ExtendedProperties": {
        "Mentor": "Vivian",
        "Address": "San Francisco"
      }
    },
    {
      "Password": null,
      "ExtendedPropertyList": [
        {
          "Value": "Vivian",
          "PropertyName": "Mentor",
          "PropertyType": 0,
          "PropertyDescription": null
        },
        {
          "Value": "New York",
          "PropertyName": "Address",
          "PropertyType": 0,
          "PropertyDescription": null
        }
      ],
      "UserName": "Ellen",
      "FullName": null,
      "Email": null,
      "ExtendedProperties": {
        "Mentor": "Vivian",
        "Address": "New York"
      }
    }
  ]
}

Type: application/*+json

RequestUserInfosParam

Example:

{
  "UserInfos": [
    {
      "Password": null,
      "ExtendedPropertyList": [
        {
          "Value": "Vivian",
          "PropertyName": "Mentor",
          "PropertyType": 0,
          "PropertyDescription": null
        },
        {
          "Value": "San Francisco",
          "PropertyName": "Address",
          "PropertyType": 0,
          "PropertyDescription": null
        }
      ],
      "UserName": "Alex",
      "FullName": null,
      "Email": null,
      "ExtendedProperties": {
        "Mentor": "Vivian",
        "Address": "San Francisco"
      }
    },
    {
      "Password": null,
      "ExtendedPropertyList": [
        {
          "Value": "Vivian",
          "PropertyName": "Mentor",
          "PropertyType": 0,
          "PropertyDescription": null
        },
        {
          "Value": "New York",
          "PropertyName": "Address",
          "PropertyType": 0,
          "PropertyDescription": null
        }
      ],
      "UserName": "Ellen",
      "FullName": null,
      "Email": null,
      "ExtendedProperties": {
        "Mentor": "Vivian",
        "Address": "New York"
      }
    }
  ]
}

Responses

[200] OK

ResultDataBase

Type: [text/plain]

Example:

{
  "Result": false,
  "Message": "Error message.",
  "ErrorCode": 0,
  "MessageProperties": null
}

ResultDataBase

Type: [application/json]

Example:

{
  "Result": false,
  "Message": "Error message.",
  "ErrorCode": 0,
  "MessageProperties": null
}

ResultDataBase

Type: [text/json]

Example:

{
  "Result": false,
  "Message": "Error message.",
  "ErrorCode": 0,
  "MessageProperties": null
}

[POST] /Manager/User/DeleteUsers

删除普通用户。

Request Body

Type: application/json-patch+json

UsersParam

Example:

{
  "Users": [
    "Bob",
    "Andy"
  ]
}

Type: application/json

UsersParam

Example:

{
  "Users": [
    "Bob",
    "Andy"
  ]
}

Type: text/json

UsersParam

Example:

{
  "Users": [
    "Bob",
    "Andy"
  ]
}

Type: application/*+json

UsersParam

Example:

{
  "Users": [
    "Bob",
    "Andy"
  ]
}

Responses

[200] OK

ResultDataBase

Type: [text/plain]

Example:

{
  "Result": false,
  "Message": "Error message.",
  "ErrorCode": 0,
  "MessageProperties": null
}

ResultDataBase

Type: [application/json]

Example:

{
  "Result": false,
  "Message": "Error message.",
  "ErrorCode": 0,
  "MessageProperties": null
}

ResultDataBase

Type: [text/json]

Example:

{
  "Result": false,
  "Message": "Error message.",
  "ErrorCode": 0,
  "MessageProperties": null
}

[POST] /Manager/User/DeleteWindowsUsers

删除域用户。

Request Body

Type: application/json-patch+json

UsersParam

Example:

{
  "Users": [
    "Alex",
    "Ellen"
  ]
}

Type: application/json

UsersParam

Example:

{
  "Users": [
    "Alex",
    "Ellen"
  ]
}

Type: text/json

UsersParam

Example:

{
  "Users": [
    "Alex",
    "Ellen"
  ]
}

Type: application/*+json

UsersParam

Example:

{
  "Users": [
    "Alex",
    "Ellen"
  ]
}

Responses

[200] OK

ResultDataBase

Type: [text/plain]

Example:

{
  "Result": false,
  "Message": "Error message.",
  "ErrorCode": 0,
  "MessageProperties": null
}

ResultDataBase

Type: [application/json]

Example:

{
  "Result": false,
  "Message": "Error message.",
  "ErrorCode": 0,
  "MessageProperties": null
}

ResultDataBase

Type: [text/json]

Example:

{
  "Result": false,
  "Message": "Error message.",
  "ErrorCode": 0,
  "MessageProperties": null
}

[POST] /Manager/User/UpdateUserInfo

更新普通用户信息。

Request Body

Type: application/json-patch+json

UpdateUserInfoParam

Example:

{
  "FullName": "Bob Smith",
  "IsEnabled": false,
  "UserName": "Bob",
  "Email": "Bob2@email.com",
  "ExtendedProperties": {
    "Mentor": "Tom",
    "Address": "San Francisco"
  }
}

Type: application/json

UpdateUserInfoParam

Example:

{
  "FullName": "Bob Smith",
  "IsEnabled": false,
  "UserName": "Bob",
  "Email": "Bob2@email.com",
  "ExtendedProperties": {
    "Mentor": "Tom",
    "Address": "San Francisco"
  }
}

Type: text/json

UpdateUserInfoParam

Example:

{
  "FullName": "Bob Smith",
  "IsEnabled": false,
  "UserName": "Bob",
  "Email": "Bob2@email.com",
  "ExtendedProperties": {
    "Mentor": "Tom",
    "Address": "San Francisco"
  }
}

Type: application/*+json

UpdateUserInfoParam

Example:

{
  "FullName": "Bob Smith",
  "IsEnabled": false,
  "UserName": "Bob",
  "Email": "Bob2@email.com",
  "ExtendedProperties": {
    "Mentor": "Tom",
    "Address": "San Francisco"
  }
}

Responses

[200] OK

ResultDataBase

Type: [text/plain]

Example:

{
  "Result": false,
  "Message": "Error message.",
  "ErrorCode": 0,
  "MessageProperties": null
}

ResultDataBase

Type: [application/json]

Example:

{
  "Result": false,
  "Message": "Error message.",
  "ErrorCode": 0,
  "MessageProperties": null
}

ResultDataBase

Type: [text/json]

Example:

{
  "Result": false,
  "Message": "Error message.",
  "ErrorCode": 0,
  "MessageProperties": null
}

[POST] /Manager/User/UpdateWindowsUserInfo

更新域用户信息。

Request Body

Type: application/json-patch+json

UpdateUserInfoParamBase

Example:

{
  "UserName": "Alex",
  "Email": "Alex2@email.com",
  "ExtendedProperties": {
    "Mentor": "Vivian",
    "Address": "San Francisco"
  }
}

Type: application/json

UpdateUserInfoParamBase

Example:

{
  "UserName": "Alex",
  "Email": "Alex2@email.com",
  "ExtendedProperties": {
    "Mentor": "Vivian",
    "Address": "San Francisco"
  }
}

Type: text/json

UpdateUserInfoParamBase

Example:

{
  "UserName": "Alex",
  "Email": "Alex2@email.com",
  "ExtendedProperties": {
    "Mentor": "Vivian",
    "Address": "San Francisco"
  }
}

Type: application/*+json

UpdateUserInfoParamBase

Example:

{
  "UserName": "Alex",
  "Email": "Alex2@email.com",
  "ExtendedProperties": {
    "Mentor": "Vivian",
    "Address": "San Francisco"
  }
}

Responses

[200] OK

ResultDataBase

Type: [text/plain]

Example:

{
  "Result": false,
  "Message": "Error message.",
  "ErrorCode": 0,
  "MessageProperties": null
}

ResultDataBase

Type: [application/json]

Example:

{
  "Result": false,
  "Message": "Error message.",
  "ErrorCode": 0,
  "MessageProperties": null
}

ResultDataBase

Type: [text/json]

Example:

{
  "Result": false,
  "Message": "Error message.",
  "ErrorCode": 0,
  "MessageProperties": null
}

[POST] /Manager/User/ResetUserPassword

重置用户密码。

Request Body

Type: application/json-patch+json

ResetUserPasswordParam

Example:

{
  "UserName": "Bob",
  "NewPassword": "123456password"
}

Type: application/json

ResetUserPasswordParam

Example:

{
  "UserName": "Bob",
  "NewPassword": "123456password"
}

Type: text/json

ResetUserPasswordParam

Example:

{
  "UserName": "Bob",
  "NewPassword": "123456password"
}

Type: application/*+json

ResetUserPasswordParam

Example:

{
  "UserName": "Bob",
  "NewPassword": "123456password"
}

Responses

[200] OK

ResultDataBase

Type: [text/plain]

Example:

{
  "Result": false,
  "Message": "Error message.",
  "ErrorCode": 0,
  "MessageProperties": null
}

ResultDataBase

Type: [application/json]

Example:

{
  "Result": false,
  "Message": "Error message.",
  "ErrorCode": 0,
  "MessageProperties": null
}

ResultDataBase

Type: [text/json]

Example:

{
  "Result": false,
  "Message": "Error message.",
  "ErrorCode": 0,
  "MessageProperties": null
}

[POST] /Manager/User/ResetUsersPassword

重置用户密码。

Request Body

Type: application/json-patch+json

ResetUsersPasswordParam

Example:

{
  "UserNames": [
    "Bob",
    "Alex"
  ],
  "NewPassword": "123456password"
}

Type: application/json

ResetUsersPasswordParam

Example:

{
  "UserNames": [
    "Bob",
    "Alex"
  ],
  "NewPassword": "123456password"
}

Type: text/json

ResetUsersPasswordParam

Example:

{
  "UserNames": [
    "Bob",
    "Alex"
  ],
  "NewPassword": "123456password"
}

Type: application/*+json

ResetUsersPasswordParam

Example:

{
  "UserNames": [
    "Bob",
    "Alex"
  ],
  "NewPassword": "123456password"
}

Responses

[200] OK

ResultDataBase

Type: [text/plain]

Example:

{
  "Result": false,
  "Message": "Error message.",
  "ErrorCode": 0,
  "MessageProperties": null
}

ResultDataBase

Type: [application/json]

Example:

{
  "Result": false,
  "Message": "Error message.",
  "ErrorCode": 0,
  "MessageProperties": null
}

ResultDataBase

Type: [text/json]

Example:

{
  "Result": false,
  "Message": "Error message.",
  "ErrorCode": 0,
  "MessageProperties": null
}

[GET] /Manager/User/GetUserInfo

Parameters

属性名 In 类型 说明
userName query string 用户名。

获取普通用户信息。

Responses

[200] OK

UserInfoResultData

Type: [text/plain]

Example:

{
  "UserInfo": {
    "IsEnabled": true,
    "Roles": [
      "Intern",
      "Developer"
    ],
    "OrganizationPaths": [
      "DepartmentA/DepartmentA1",
      "DepartmentA/DepartmentA2"
    ],
    "UserName": "Bob",
    "FullName": "Bob Smith",
    "Email": "Bob@email.com",
    "ExtendedProperties": {
      "Mentor": "Tom",
      "Address": "New York"
    }
  },
  "Result": true,
  "Message": null,
  "ErrorCode": 0,
  "MessageProperties": null
}

UserInfoResultData

Type: [application/json]

Example:

{
  "UserInfo": {
    "IsEnabled": true,
    "Roles": [
      "Intern",
      "Developer"
    ],
    "OrganizationPaths": [
      "DepartmentA/DepartmentA1",
      "DepartmentA/DepartmentA2"
    ],
    "UserName": "Bob",
    "FullName": "Bob Smith",
    "Email": "Bob@email.com",
    "ExtendedProperties": {
      "Mentor": "Tom",
      "Address": "New York"
    }
  },
  "Result": true,
  "Message": null,
  "ErrorCode": 0,
  "MessageProperties": null
}

UserInfoResultData

Type: [text/json]

Example:

{
  "UserInfo": {
    "IsEnabled": true,
    "Roles": [
      "Intern",
      "Developer"
    ],
    "OrganizationPaths": [
      "DepartmentA/DepartmentA1",
      "DepartmentA/DepartmentA2"
    ],
    "UserName": "Bob",
    "FullName": "Bob Smith",
    "Email": "Bob@email.com",
    "ExtendedProperties": {
      "Mentor": "Tom",
      "Address": "New York"
    }
  },
  "Result": true,
  "Message": null,
  "ErrorCode": 0,
  "MessageProperties": null
}

[GET] /Manager/User/GetWindowsUserInfo

Parameters

属性名 In 类型 说明
userName query string 用户名。

获取域用户信息。

Responses

[200] OK

UserInfoResultData

Type: [text/plain]

Example:

{
  "UserInfo": {
    "IsEnabled": true,
    "Roles": [
      "Intern",
      "Developer"
    ],
    "OrganizationPaths": [
      "DepartmentA/DepartmentA1",
      "DepartmentA/DepartmentA2"
    ],
    "UserName": "Bob",
    "FullName": "Bob Smith",
    "Email": "Bob@email.com",
    "ExtendedProperties": {
      "Mentor": "Tom",
      "Address": "New York"
    }
  },
  "Result": true,
  "Message": null,
  "ErrorCode": 0,
  "MessageProperties": null
}

UserInfoResultData

Type: [application/json]

Example:

{
  "UserInfo": {
    "IsEnabled": true,
    "Roles": [
      "Intern",
      "Developer"
    ],
    "OrganizationPaths": [
      "DepartmentA/DepartmentA1",
      "DepartmentA/DepartmentA2"
    ],
    "UserName": "Bob",
    "FullName": "Bob Smith",
    "Email": "Bob@email.com",
    "ExtendedProperties": {
      "Mentor": "Tom",
      "Address": "New York"
    }
  },
  "Result": true,
  "Message": null,
  "ErrorCode": 0,
  "MessageProperties": null
}

UserInfoResultData

Type: [text/json]

Example:

{
  "UserInfo": {
    "IsEnabled": true,
    "Roles": [
      "Intern",
      "Developer"
    ],
    "OrganizationPaths": [
      "DepartmentA/DepartmentA1",
      "DepartmentA/DepartmentA2"
    ],
    "UserName": "Bob",
    "FullName": "Bob Smith",
    "Email": "Bob@email.com",
    "ExtendedProperties": {
      "Mentor": "Tom",
      "Address": "New York"
    }
  },
  "Result": true,
  "Message": null,
  "ErrorCode": 0,
  "MessageProperties": null
}

[GET] /Manager/User/GetUserInfos

Parameters

属性名 In 类型 说明
roleName query string 角色名。

获取普通用户信息。

Responses

[200] OK

UserInfosResultData

Type: [text/plain]

Example:

{
  "Users": [
    {
      "IsEnabled": true,
      "Roles": [
        "Intern",
        "Developer"
      ],
      "OrganizationPaths": [
        "DepartmentA/DepartmentA1",
        "DepartmentA/DepartmentA1"
      ],
      "UserName": "Bob",
      "FullName": "Bob Smith",
      "Email": "Bob@email.com",
      "ExtendedProperties": {
        "Mentor": "Tom",
        "Address": "New York"
      }
    },
    {
      "IsEnabled": true,
      "Roles": [
        "Developer"
      ],
      "OrganizationPaths": [
        "DepartmentB/DepartmentB1",
        "DepartmentB/DepartmentB1"
      ],
      "UserName": "Andy",
      "FullName": "Andy Brown",
      "Email": "Andy@email.com",
      "ExtendedProperties": {
        "Mentor": "Tom",
        "Address": "New York"
      }
    }
  ],
  "Result": true,
  "Message": null,
  "ErrorCode": 0,
  "MessageProperties": null
}

UserInfosResultData

Type: [application/json]

Example:

{
  "Users": [
    {
      "IsEnabled": true,
      "Roles": [
        "Intern",
        "Developer"
      ],
      "OrganizationPaths": [
        "DepartmentA/DepartmentA1",
        "DepartmentA/DepartmentA1"
      ],
      "UserName": "Bob",
      "FullName": "Bob Smith",
      "Email": "Bob@email.com",
      "ExtendedProperties": {
        "Mentor": "Tom",
        "Address": "New York"
      }
    },
    {
      "IsEnabled": true,
      "Roles": [
        "Developer"
      ],
      "OrganizationPaths": [
        "DepartmentB/DepartmentB1",
        "DepartmentB/DepartmentB1"
      ],
      "UserName": "Andy",
      "FullName": "Andy Brown",
      "Email": "Andy@email.com",
      "ExtendedProperties": {
        "Mentor": "Tom",
        "Address": "New York"
      }
    }
  ],
  "Result": true,
  "Message": null,
  "ErrorCode": 0,
  "MessageProperties": null
}

UserInfosResultData

Type: [text/json]

Example:

{
  "Users": [
    {
      "IsEnabled": true,
      "Roles": [
        "Intern",
        "Developer"
      ],
      "OrganizationPaths": [
        "DepartmentA/DepartmentA1",
        "DepartmentA/DepartmentA1"
      ],
      "UserName": "Bob",
      "FullName": "Bob Smith",
      "Email": "Bob@email.com",
      "ExtendedProperties": {
        "Mentor": "Tom",
        "Address": "New York"
      }
    },
    {
      "IsEnabled": true,
      "Roles": [
        "Developer"
      ],
      "OrganizationPaths": [
        "DepartmentB/DepartmentB1",
        "DepartmentB/DepartmentB1"
      ],
      "UserName": "Andy",
      "FullName": "Andy Brown",
      "Email": "Andy@email.com",
      "ExtendedProperties": {
        "Mentor": "Tom",
        "Address": "New York"
      }
    }
  ],
  "Result": true,
  "Message": null,
  "ErrorCode": 0,
  "MessageProperties": null
}

[GET] /Manager/User/GetWindowsUserInfos

Parameters

属性名 In 类型 说明
roleName query string 角色名。

获取域用户信息。

Responses

[200] OK

UserInfosResultData

Type: [text/plain]

Example:

{
  "Users": [
    {
      "IsEnabled": true,
      "Roles": [
        "Intern",
        "Developer"
      ],
      "OrganizationPaths": [
        "DepartmentA/DepartmentA1",
        "DepartmentA/DepartmentA1"
      ],
      "UserName": "Bob",
      "FullName": "Bob Smith",
      "Email": "Bob@email.com",
      "ExtendedProperties": {
        "Mentor": "Tom",
        "Address": "New York"
      }
    },
    {
      "IsEnabled": true,
      "Roles": [
        "Developer"
      ],
      "OrganizationPaths": [
        "DepartmentB/DepartmentB1",
        "DepartmentB/DepartmentB1"
      ],
      "UserName": "Andy",
      "FullName": "Andy Brown",
      "Email": "Andy@email.com",
      "ExtendedProperties": {
        "Mentor": "Tom",
        "Address": "New York"
      }
    }
  ],
  "Result": true,
  "Message": null,
  "ErrorCode": 0,
  "MessageProperties": null
}

UserInfosResultData

Type: [application/json]

Example:

{
  "Users": [
    {
      "IsEnabled": true,
      "Roles": [
        "Intern",
        "Developer"
      ],
      "OrganizationPaths": [
        "DepartmentA/DepartmentA1",
        "DepartmentA/DepartmentA1"
      ],
      "UserName": "Bob",
      "FullName": "Bob Smith",
      "Email": "Bob@email.com",
      "ExtendedProperties": {
        "Mentor": "Tom",
        "Address": "New York"
      }
    },
    {
      "IsEnabled": true,
      "Roles": [
        "Developer"
      ],
      "OrganizationPaths": [
        "DepartmentB/DepartmentB1",
        "DepartmentB/DepartmentB1"
      ],
      "UserName": "Andy",
      "FullName": "Andy Brown",
      "Email": "Andy@email.com",
      "ExtendedProperties": {
        "Mentor": "Tom",
        "Address": "New York"
      }
    }
  ],
  "Result": true,
  "Message": null,
  "ErrorCode": 0,
  "MessageProperties": null
}

UserInfosResultData

Type: [text/json]

Example:

{
  "Users": [
    {
      "IsEnabled": true,
      "Roles": [
        "Intern",
        "Developer"
      ],
      "OrganizationPaths": [
        "DepartmentA/DepartmentA1",
        "DepartmentA/DepartmentA1"
      ],
      "UserName": "Bob",
      "FullName": "Bob Smith",
      "Email": "Bob@email.com",
      "ExtendedProperties": {
        "Mentor": "Tom",
        "Address": "New York"
      }
    },
    {
      "IsEnabled": true,
      "Roles": [
        "Developer"
      ],
      "OrganizationPaths": [
        "DepartmentB/DepartmentB1",
        "DepartmentB/DepartmentB1"
      ],
      "UserName": "Andy",
      "FullName": "Andy Brown",
      "Email": "Andy@email.com",
      "ExtendedProperties": {
        "Mentor": "Tom",
        "Address": "New York"
      }
    }
  ],
  "Result": true,
  "Message": null,
  "ErrorCode": 0,
  "MessageProperties": null
}

[GET] /Manager/User/GetRolesOfUserOwnedPermissions

Parameters

属性名 In 类型 说明
userName query string 用户名。

获取普通用户的角色。

Responses

[200] OK

RolesResultData

Type: [text/plain]

Example:

{
  "Roles": [
    "Intern",
    "Developer",
    "RoleA",
    "RoleB",
    "RoleC"
  ],
  "Result": false,
  "Message": null,
  "ErrorCode": 0,
  "MessageProperties": null
}

RolesResultData

Type: [application/json]

Example:

{
  "Roles": [
    "Intern",
    "Developer",
    "RoleA",
    "RoleB",
    "RoleC"
  ],
  "Result": false,
  "Message": null,
  "ErrorCode": 0,
  "MessageProperties": null
}

RolesResultData

Type: [text/json]

Example:

{
  "Roles": [
    "Intern",
    "Developer",
    "RoleA",
    "RoleB",
    "RoleC"
  ],
  "Result": false,
  "Message": null,
  "ErrorCode": 0,
  "MessageProperties": null
}

[GET] /Manager/User/GetRolesOfWindowsUserOwnedPermissions

Parameters

属性名 In 类型 说明
userName query string 用户名。

获取域用户的角色。

Responses

[200] OK

RolesResultData

Type: [text/plain]

Example:

{
  "Roles": [
    "Intern",
    "Developer",
    "RoleA",
    "RoleB",
    "RoleC"
  ],
  "Result": false,
  "Message": null,
  "ErrorCode": 0,
  "MessageProperties": null
}

RolesResultData

Type: [application/json]

Example:

{
  "Roles": [
    "Intern",
    "Developer",
    "RoleA",
    "RoleB",
    "RoleC"
  ],
  "Result": false,
  "Message": null,
  "ErrorCode": 0,
  "MessageProperties": null
}

RolesResultData

Type: [text/json]

Example:

{
  "Roles": [
    "Intern",
    "Developer",
    "RoleA",
    "RoleB",
    "RoleC"
  ],
  "Result": false,
  "Message": null,
  "ErrorCode": 0,
  "MessageProperties": null
}

Models

Ƭ ResultDataBase

请求结果。

属性名 类型 说明 Example
Result Boolean 请求是否成功。
MessageNullable string 请求返回的信息。
ErrorCode int32 请求返回的错误码。
MessagePropertiesNullable Array 请求返回信息中的数据。

Ƭ RequestUserInfosParam

用户相关请求所使用的参数。

属性名 类型 说明 Example
UserInfosNullable Array<RequestUserInfo> 用户信息。

Ƭ RequestUserInfo

请求中的用户信息。

属性名 类型 说明 Example
PasswordNullable string 密码。
ExtendedPropertyListNullable Array<PropertyValueInfo> 扩展属性的值。
UserNameNullable string 用户名。
FullNameNullable string 全名。
EmailNullable string 电子邮箱。
ExtendedPropertiesNullable string 扩展属性。

Ƭ PropertyValueInfo

对象的属性和值。

属性名 类型 说明 Example
ValueNullable string 属性值。
PropertyNameNullable string 属性名。
PropertyType int32 属性类型。
  • 0 - 用户型。
  • 1 - 文本型。
PropertyDescriptionNullable string 属性描述。

Ƭ UsersParam

用户相关请求所使用的参数。

属性名 类型 说明 Example
UsersNullable Array<string> 用户名列表。

Ƭ UpdateUserInfoParam

更新用户请求所使用的参数。

属性名 类型 说明 Example
FullNameNullable string 全名。
IsEnabled Boolean 用户是否有效。
UserNameNullable string 用户名。
EmailNullable string 邮箱。
ExtendedPropertiesNullable string 自定义属性。

Ƭ UpdateUserInfoParamBase

更新用户请求所使用的参数。

属性名 类型 说明 Example
UserNameNullable string 用户名。
EmailNullable string 邮箱。
ExtendedPropertiesNullable string 自定义属性。

Ƭ ResetUserPasswordParam

重置密码请求中使用的参数。

属性名 类型 说明 Example
UserNameNullable string 用户名。
NewPasswordNullable string 新密码。

Ƭ ResetUsersPasswordParam

重置密码请求中使用的参数。

属性名 类型 说明 Example
UserNamesNullable Array<string> 用户名的列表。
NewPasswordNullable string 新密码。

Ƭ UserInfoResultData

请求返回的用户信息。

属性名 类型 说明 Example
UserInfo ResultUserInfo
Result Boolean 请求是否成功。
MessageNullable string 请求返回的信息。
ErrorCode int32 请求返回的错误码。
MessagePropertiesNullable Array 请求返回信息中的数据。

Ƭ ResultUserInfo

请求返回的用户信息。

属性名 类型 说明 Example
IsEnabled Boolean 用户是否有效。
RolesNullable Array<string> 用户是否有效。
OrganizationPathsNullable Array<string> 用户所在组织的路径。
UserNameNullable string 用户名。
FullNameNullable string 全名。
EmailNullable string 电子邮箱。
ExtendedPropertiesNullable string 扩展属性。

Ƭ UserInfosResultData

请求返回的用户信息。

属性名 类型 说明 Example
UsersNullable Array<ResultUserInfo> 用户信息。
Result Boolean 请求是否成功。
MessageNullable string 请求返回的信息。
ErrorCode int32 请求返回的错误码。
MessagePropertiesNullable Array 请求返回信息中的数据。

Ƭ RolesResultData

请求返回的角色。

属性名 类型 说明 Example
RolesNullable Array<string> 角色列表。
Result Boolean 请求是否成功。
MessageNullable string 请求返回的信息。
ErrorCode int32 请求返回的错误码。
MessagePropertiesNullable Array 请求返回信息中的数据。