[]
        
(Showing Draft Content)

OrganizationApiV1

OrganizationApiV1

[POST] /Manager/Organization/AddOrganizationLevel

添加组织级别。

Request Body

Type: application/json-patch+json

OrganizationLevelNameParam

Example:

{
  "OrganizationLevelName": "Company"
}

Type: application/json

OrganizationLevelNameParam

Example:

{
  "OrganizationLevelName": "Company"
}

Type: text/json

OrganizationLevelNameParam

Example:

{
  "OrganizationLevelName": "Company"
}

Type: application/*+json

OrganizationLevelNameParam

Example:

{
  "OrganizationLevelName": "Company"
}

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/Organization/UpdateOrganizationLevel

更新组织级别。

Request Body

Type: application/json-patch+json

UpdateOrganizationLevelParam

Example:

{
  "OldOrganizationLevelName": "Company",
  "NewOrganizationLevelName": "Corporation"
}

Type: application/json

UpdateOrganizationLevelParam

Example:

{
  "OldOrganizationLevelName": "Company",
  "NewOrganizationLevelName": "Corporation"
}

Type: text/json

UpdateOrganizationLevelParam

Example:

{
  "OldOrganizationLevelName": "Company",
  "NewOrganizationLevelName": "Corporation"
}

Type: application/*+json

UpdateOrganizationLevelParam

Example:

{
  "OldOrganizationLevelName": "Company",
  "NewOrganizationLevelName": "Corporation"
}

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/Organization/DeleteOrganizationLevel

删除组织级别。

Request Body

Type: application/json-patch+json

OrganizationLevelNameParam

Example:

{
  "OrganizationLevelName": "Company"
}

Type: application/json

OrganizationLevelNameParam

Example:

{
  "OrganizationLevelName": "Company"
}

Type: text/json

OrganizationLevelNameParam

Example:

{
  "OrganizationLevelName": "Company"
}

Type: application/*+json

OrganizationLevelNameParam

Example:

{
  "OrganizationLevelName": "Company"
}

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/Organization/GetOrganizationLevels

获取所有的组织级别。

Responses

[200] OK

OrganizationLevelsResultData

Type: [text/plain]

Example:

{
  "OrganizationLevels": [
    "Company",
    "Department",
    "SubDepartment"
  ],
  "Result": true,
  "Message": null,
  "ErrorCode": 0,
  "MessageProperties": null
}

OrganizationLevelsResultData

Type: [application/json]

Example:

{
  "OrganizationLevels": [
    "Company",
    "Department",
    "SubDepartment"
  ],
  "Result": true,
  "Message": null,
  "ErrorCode": 0,
  "MessageProperties": null
}

OrganizationLevelsResultData

Type: [text/json]

Example:

{
  "OrganizationLevels": [
    "Company",
    "Department",
    "SubDepartment"
  ],
  "Result": true,
  "Message": null,
  "ErrorCode": 0,
  "MessageProperties": null
}

[POST] /Manager/Organization/AddOrganization

添加组织。

Request Body

Type: application/json-patch+json

AddOrganizationParam

Example:

{
  "OrganizationName": "Group1",
  "ParentOrganizationPath": "DevelopmentA/DevelopmentA1",
  "OrganizationLevel": "SubDepartment"
}

Type: application/json

AddOrganizationParam

Example:

{
  "OrganizationName": "Group1",
  "ParentOrganizationPath": "DevelopmentA/DevelopmentA1",
  "OrganizationLevel": "SubDepartment"
}

Type: text/json

AddOrganizationParam

Example:

{
  "OrganizationName": "Group1",
  "ParentOrganizationPath": "DevelopmentA/DevelopmentA1",
  "OrganizationLevel": "SubDepartment"
}

Type: application/*+json

AddOrganizationParam

Example:

{
  "OrganizationName": "Group1",
  "ParentOrganizationPath": "DevelopmentA/DevelopmentA1",
  "OrganizationLevel": "SubDepartment"
}

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/Organization/DeleteOrganization

删除组织。

Request Body

Type: application/json-patch+json

OrganizationPathParam

Example:

{
  "OrganizationPath": "DepartmentA/DepartmentA1/Group1"
}

Type: application/json

OrganizationPathParam

Example:

{
  "OrganizationPath": "DepartmentA/DepartmentA1/Group1"
}

Type: text/json

OrganizationPathParam

Example:

{
  "OrganizationPath": "DepartmentA/DepartmentA1/Group1"
}

Type: application/*+json

OrganizationPathParam

Example:

{
  "OrganizationPath": "DepartmentA/DepartmentA1/Group1"
}

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/Organization/UpdateOrganizationInfo

更新组织信息。

Request Body

Type: application/json-patch+json

UpdateOrganizationInfoParam

Example:

{
  "OldOrganizationName": "Group1",
  "ParentOrganizationPath": "DepartmentA/DepartmentA1",
  "NewOrganizationName": "Group2",
  "NewOrganizationLevel": "Department"
}

Type: application/json

UpdateOrganizationInfoParam

Example:

{
  "OldOrganizationName": "Group1",
  "ParentOrganizationPath": "DepartmentA/DepartmentA1",
  "NewOrganizationName": "Group2",
  "NewOrganizationLevel": "Department"
}

Type: text/json

UpdateOrganizationInfoParam

Example:

{
  "OldOrganizationName": "Group1",
  "ParentOrganizationPath": "DepartmentA/DepartmentA1",
  "NewOrganizationName": "Group2",
  "NewOrganizationLevel": "Department"
}

Type: application/*+json

UpdateOrganizationInfoParam

Example:

{
  "OldOrganizationName": "Group1",
  "ParentOrganizationPath": "DepartmentA/DepartmentA1",
  "NewOrganizationName": "Group2",
  "NewOrganizationLevel": "Department"
}

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/Organization/GetOrganizationInfos

Parameters

属性名 In 类型 说明
organizationPath query string 组织路径。
isRecursive query boolean 是否是递归子组织信息。

获取所有组织的信息。

Responses

[200] OK

OrganizationInfosResultData

Type: [text/plain]

Example:

{
  "OrganizationInfos": [
    {
      "ParentOrganizationPath": "",
      "OrganizationPath": "CompanyA",
      "OrganizationName": "CompanyA",
      "OrganizationLevelName": "Company",
      "SubOrganizations": [
        {
          "ParentOrganizationPath": "CompanyA",
          "OrganizationPath": "CompanyA/DepartmentA1",
          "OrganizationName": "DepartmentA1",
          "OrganizationLevelName": "Department",
          "SubOrganizations": null,
          "Members": null
        }
      ],
      "Members": [
        {
          "IsWindowsUser": false,
          "IsLeader": false,
          "UserName": "David",
          "OrganizationRole": "Intern",
          "OrganizationRoles": [
            "Intern"
          ]
        },
        {
          "IsWindowsUser": true,
          "IsLeader": true,
          "UserName": "Alex",
          "OrganizationRole": "Developer",
          "OrganizationRoles": [
            "Developer"
          ]
        }
      ]
    },
    {
      "ParentOrganizationPath": "",
      "OrganizationPath": "CompanyB",
      "OrganizationName": "CompanyB",
      "OrganizationLevelName": "Company",
      "SubOrganizations": [
        {
          "ParentOrganizationPath": "CompanyB",
          "OrganizationPath": "CompanyB/DepartmentB1",
          "OrganizationName": "DepartmentB1",
          "OrganizationLevelName": "Department",
          "SubOrganizations": null,
          "Members": null
        }
      ],
      "Members": [
        {
          "IsWindowsUser": false,
          "IsLeader": false,
          "UserName": "David",
          "OrganizationRole": "Intern",
          "OrganizationRoles": [
            "Intern"
          ]
        },
        {
          "IsWindowsUser": true,
          "IsLeader": false,
          "UserName": "Alex",
          "OrganizationRole": "Teacher",
          "OrganizationRoles": [
            "Teacher"
          ]
        }
      ]
    }
  ],
  "Result": true,
  "Message": null,
  "ErrorCode": 0,
  "MessageProperties": null
}

OrganizationInfosResultData

Type: [application/json]

Example:

{
  "OrganizationInfos": [
    {
      "ParentOrganizationPath": "",
      "OrganizationPath": "CompanyA",
      "OrganizationName": "CompanyA",
      "OrganizationLevelName": "Company",
      "SubOrganizations": [
        {
          "ParentOrganizationPath": "CompanyA",
          "OrganizationPath": "CompanyA/DepartmentA1",
          "OrganizationName": "DepartmentA1",
          "OrganizationLevelName": "Department",
          "SubOrganizations": null,
          "Members": null
        }
      ],
      "Members": [
        {
          "IsWindowsUser": false,
          "IsLeader": false,
          "UserName": "David",
          "OrganizationRole": "Intern",
          "OrganizationRoles": [
            "Intern"
          ]
        },
        {
          "IsWindowsUser": true,
          "IsLeader": true,
          "UserName": "Alex",
          "OrganizationRole": "Developer",
          "OrganizationRoles": [
            "Developer"
          ]
        }
      ]
    },
    {
      "ParentOrganizationPath": "",
      "OrganizationPath": "CompanyB",
      "OrganizationName": "CompanyB",
      "OrganizationLevelName": "Company",
      "SubOrganizations": [
        {
          "ParentOrganizationPath": "CompanyB",
          "OrganizationPath": "CompanyB/DepartmentB1",
          "OrganizationName": "DepartmentB1",
          "OrganizationLevelName": "Department",
          "SubOrganizations": null,
          "Members": null
        }
      ],
      "Members": [
        {
          "IsWindowsUser": false,
          "IsLeader": false,
          "UserName": "David",
          "OrganizationRole": "Intern",
          "OrganizationRoles": [
            "Intern"
          ]
        },
        {
          "IsWindowsUser": true,
          "IsLeader": false,
          "UserName": "Alex",
          "OrganizationRole": "Teacher",
          "OrganizationRoles": [
            "Teacher"
          ]
        }
      ]
    }
  ],
  "Result": true,
  "Message": null,
  "ErrorCode": 0,
  "MessageProperties": null
}

OrganizationInfosResultData

Type: [text/json]

Example:

{
  "OrganizationInfos": [
    {
      "ParentOrganizationPath": "",
      "OrganizationPath": "CompanyA",
      "OrganizationName": "CompanyA",
      "OrganizationLevelName": "Company",
      "SubOrganizations": [
        {
          "ParentOrganizationPath": "CompanyA",
          "OrganizationPath": "CompanyA/DepartmentA1",
          "OrganizationName": "DepartmentA1",
          "OrganizationLevelName": "Department",
          "SubOrganizations": null,
          "Members": null
        }
      ],
      "Members": [
        {
          "IsWindowsUser": false,
          "IsLeader": false,
          "UserName": "David",
          "OrganizationRole": "Intern",
          "OrganizationRoles": [
            "Intern"
          ]
        },
        {
          "IsWindowsUser": true,
          "IsLeader": true,
          "UserName": "Alex",
          "OrganizationRole": "Developer",
          "OrganizationRoles": [
            "Developer"
          ]
        }
      ]
    },
    {
      "ParentOrganizationPath": "",
      "OrganizationPath": "CompanyB",
      "OrganizationName": "CompanyB",
      "OrganizationLevelName": "Company",
      "SubOrganizations": [
        {
          "ParentOrganizationPath": "CompanyB",
          "OrganizationPath": "CompanyB/DepartmentB1",
          "OrganizationName": "DepartmentB1",
          "OrganizationLevelName": "Department",
          "SubOrganizations": null,
          "Members": null
        }
      ],
      "Members": [
        {
          "IsWindowsUser": false,
          "IsLeader": false,
          "UserName": "David",
          "OrganizationRole": "Intern",
          "OrganizationRoles": [
            "Intern"
          ]
        },
        {
          "IsWindowsUser": true,
          "IsLeader": false,
          "UserName": "Alex",
          "OrganizationRole": "Teacher",
          "OrganizationRoles": [
            "Teacher"
          ]
        }
      ]
    }
  ],
  "Result": true,
  "Message": null,
  "ErrorCode": 0,
  "MessageProperties": null
}

[POST] /Manager/Organization/AddUsersToOrganization

给指定组织添加普通用户。

Request Body

Type: application/json-patch+json

AddUsersToOrganizationParam

Example:

{
  "Users": [
    {
      "IsWindowsUser": false,
      "IsLeader": false,
      "UserName": "Bob",
      "OrganizationRole": "Intern",
      "OrganizationRoles": [
        "Intern"
      ]
    },
    {
      "IsWindowsUser": false,
      "IsLeader": false,
      "UserName": "Andy",
      "OrganizationRole": "Developer",
      "OrganizationRoles": [
        "Developer"
      ]
    }
  ],
  "OrganizationPath": "CompanyA/DepartmentA1/Group1"
}

Type: application/json

AddUsersToOrganizationParam

Example:

{
  "Users": [
    {
      "IsWindowsUser": false,
      "IsLeader": false,
      "UserName": "Bob",
      "OrganizationRole": "Intern",
      "OrganizationRoles": [
        "Intern"
      ]
    },
    {
      "IsWindowsUser": false,
      "IsLeader": false,
      "UserName": "Andy",
      "OrganizationRole": "Developer",
      "OrganizationRoles": [
        "Developer"
      ]
    }
  ],
  "OrganizationPath": "CompanyA/DepartmentA1/Group1"
}

Type: text/json

AddUsersToOrganizationParam

Example:

{
  "Users": [
    {
      "IsWindowsUser": false,
      "IsLeader": false,
      "UserName": "Bob",
      "OrganizationRole": "Intern",
      "OrganizationRoles": [
        "Intern"
      ]
    },
    {
      "IsWindowsUser": false,
      "IsLeader": false,
      "UserName": "Andy",
      "OrganizationRole": "Developer",
      "OrganizationRoles": [
        "Developer"
      ]
    }
  ],
  "OrganizationPath": "CompanyA/DepartmentA1/Group1"
}

Type: application/*+json

AddUsersToOrganizationParam

Example:

{
  "Users": [
    {
      "IsWindowsUser": false,
      "IsLeader": false,
      "UserName": "Bob",
      "OrganizationRole": "Intern",
      "OrganizationRoles": [
        "Intern"
      ]
    },
    {
      "IsWindowsUser": false,
      "IsLeader": false,
      "UserName": "Andy",
      "OrganizationRole": "Developer",
      "OrganizationRoles": [
        "Developer"
      ]
    }
  ],
  "OrganizationPath": "CompanyA/DepartmentA1/Group1"
}

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/Organization/AddWindowsUsersToOrganization

给指定组织添加域用户。

Request Body

Type: application/json-patch+json

AddUsersToOrganizationParam

Example:

{
  "Users": [
    {
      "IsWindowsUser": true,
      "IsLeader": false,
      "UserName": "Bob",
      "OrganizationRole": "Intern",
      "OrganizationRoles": [
        "Intern"
      ]
    },
    {
      "IsWindowsUser": true,
      "IsLeader": false,
      "UserName": "Andy",
      "OrganizationRole": "Developer",
      "OrganizationRoles": [
        "Developer"
      ]
    }
  ],
  "OrganizationPath": "CompanyA/DepartmentA1/Group1"
}

Type: application/json

AddUsersToOrganizationParam

Example:

{
  "Users": [
    {
      "IsWindowsUser": true,
      "IsLeader": false,
      "UserName": "Bob",
      "OrganizationRole": "Intern",
      "OrganizationRoles": [
        "Intern"
      ]
    },
    {
      "IsWindowsUser": true,
      "IsLeader": false,
      "UserName": "Andy",
      "OrganizationRole": "Developer",
      "OrganizationRoles": [
        "Developer"
      ]
    }
  ],
  "OrganizationPath": "CompanyA/DepartmentA1/Group1"
}

Type: text/json

AddUsersToOrganizationParam

Example:

{
  "Users": [
    {
      "IsWindowsUser": true,
      "IsLeader": false,
      "UserName": "Bob",
      "OrganizationRole": "Intern",
      "OrganizationRoles": [
        "Intern"
      ]
    },
    {
      "IsWindowsUser": true,
      "IsLeader": false,
      "UserName": "Andy",
      "OrganizationRole": "Developer",
      "OrganizationRoles": [
        "Developer"
      ]
    }
  ],
  "OrganizationPath": "CompanyA/DepartmentA1/Group1"
}

Type: application/*+json

AddUsersToOrganizationParam

Example:

{
  "Users": [
    {
      "IsWindowsUser": true,
      "IsLeader": false,
      "UserName": "Bob",
      "OrganizationRole": "Intern",
      "OrganizationRoles": [
        "Intern"
      ]
    },
    {
      "IsWindowsUser": true,
      "IsLeader": false,
      "UserName": "Andy",
      "OrganizationRole": "Developer",
      "OrganizationRoles": [
        "Developer"
      ]
    }
  ],
  "OrganizationPath": "CompanyA/DepartmentA1/Group1"
}

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/Organization/RemoveUsersFromOrganization

从指定组织移除普通用户。

Request Body

Type: application/json-patch+json

RemoveUsersFromOrganizationParam

Example:

{
  "Users": [
    "Bob",
    "Andy"
  ],
  "OrganizationPath": "CompanyA/DepartmentA1/Group1"
}

Type: application/json

RemoveUsersFromOrganizationParam

Example:

{
  "Users": [
    "Bob",
    "Andy"
  ],
  "OrganizationPath": "CompanyA/DepartmentA1/Group1"
}

Type: text/json

RemoveUsersFromOrganizationParam

Example:

{
  "Users": [
    "Bob",
    "Andy"
  ],
  "OrganizationPath": "CompanyA/DepartmentA1/Group1"
}

Type: application/*+json

RemoveUsersFromOrganizationParam

Example:

{
  "Users": [
    "Bob",
    "Andy"
  ],
  "OrganizationPath": "CompanyA/DepartmentA1/Group1"
}

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/Organization/RemoveWindowsUsersFromOrganization

从指定组织移除域用户。

Request Body

Type: application/json-patch+json

RemoveUsersFromOrganizationParam

Example:

{
  "Users": [
    "Bob",
    "Andy"
  ],
  "OrganizationPath": "CompanyA/DepartmentA1/Group1"
}

Type: application/json

RemoveUsersFromOrganizationParam

Example:

{
  "Users": [
    "Bob",
    "Andy"
  ],
  "OrganizationPath": "CompanyA/DepartmentA1/Group1"
}

Type: text/json

RemoveUsersFromOrganizationParam

Example:

{
  "Users": [
    "Bob",
    "Andy"
  ],
  "OrganizationPath": "CompanyA/DepartmentA1/Group1"
}

Type: application/*+json

RemoveUsersFromOrganizationParam

Example:

{
  "Users": [
    "Bob",
    "Andy"
  ],
  "OrganizationPath": "CompanyA/DepartmentA1/Group1"
}

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/Organization/MoveEntireOrganization

移动组织。

Request Body

Type: application/json-patch+json

MoveEntireOrganizationParam

Example:

{
  "OrganizationPath": "CompanyA/DepartmentA1/Group1",
  "NewParentOrganizationPath": "CompanyA/DepartmentB1"
}

Type: application/json

MoveEntireOrganizationParam

Example:

{
  "OrganizationPath": "CompanyA/DepartmentA1/Group1",
  "NewParentOrganizationPath": "CompanyA/DepartmentB1"
}

Type: text/json

MoveEntireOrganizationParam

Example:

{
  "OrganizationPath": "CompanyA/DepartmentA1/Group1",
  "NewParentOrganizationPath": "CompanyA/DepartmentB1"
}

Type: application/*+json

MoveEntireOrganizationParam

Example:

{
  "OrganizationPath": "CompanyA/DepartmentA1/Group1",
  "NewParentOrganizationPath": "CompanyA/DepartmentB1"
}

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
}

Models

Ƭ ResultDataBase

请求结果。

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

Ƭ OrganizationLevelNameParam

组织级别请求中使用的参数。

属性名 类型 说明 Example
OrganizationLevelNameNullable string 组织级别名。

Ƭ UpdateOrganizationLevelParam

更新组织级别请求中使用的参数。

属性名 类型 说明 Example
OldOrganizationLevelNameNullable string 旧的组织级别名称。
NewOrganizationLevelNameNullable string 新的组织级别名称。

Ƭ OrganizationLevelsResultData

请求返回的组织级别数据。

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

Ƭ AddOrganizationParam

添加组织请求中使用的参数。

属性名 类型 说明 Example
OrganizationNameNullable string 组织名称。
ParentOrganizationPathNullable string 父组织的路径。
OrganizationLevelNullable string 组织级别。

Ƭ OrganizationPathParam

组织请求中使用的参数。

属性名 类型 说明 Example
OrganizationPathNullable string 组织路径。

Ƭ UpdateOrganizationInfoParam

更新组织请求中使用的参数。

属性名 类型 说明 Example
OldOrganizationNameNullable string 旧的组织名称。
ParentOrganizationPathNullable string 父组织路径。
NewOrganizationNameNullable string 新的组织名称。
NewOrganizationLevelNullable string 新的组织级别。

Ƭ OrganizationInfosResultData

请求返回的组织信息。

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

Ƭ OrganizationDetailInfo

组织详细信息。

属性名 类型 说明 Example
ParentOrganizationPathNullable string 父组织的路径。
OrganizationPathNullable string 组织路径。
OrganizationNameNullable string 组织名称。
OrganizationLevelNameNullable string 组织级别。
SubOrganizationsNullable Array<OrganizationDetailInfo> 自组织。
MembersNullable Array<OrganizationMemberUserInfo> 组织成员。

Ƭ OrganizationMemberUserInfo

组织成员的用户信息。

属性名 类型 说明 Example
IsWindowsUser Boolean 是否是域用户。
IsLeaderNullable Boolean 是否是组织领导。
UserNameNullable string 用户名。
OrganizationRoleNullable string 组织角色。这个属性是为了保持兼容性而保留。请参考
OrganizationRolesNullable Array<string> 组织角色。

Ƭ AddUsersToOrganizationParam

给指定组织添加用户请求中使用的参数。

属性名 类型 说明 Example
UsersNullable Array<OrganizationMemberUserInfo> 用户列表。
OrganizationPathNullable string 组织路径。

Ƭ RemoveUsersFromOrganizationParam

从指定组织移除用户请求中使用的参数。

属性名 类型 说明 Example
UsersNullable Array<string> 用户列表。
OrganizationPathNullable string 组织路径。

Ƭ MoveEntireOrganizationParam

移动组织请求中使用的参数。

属性名 类型 说明 Example
OrganizationPathNullable string 组织路径。
NewParentOrganizationPathNullable string 新父组织的路径。