Admin::ReadDepartmentsByEntity method
Reads the list of departments in Project Server for the specified entity.
Namespace: WebSvcAdmin
Assembly: ProjectServerServices (in ProjectServerServices.dll)
Parameters
- entityUid
- Type: System.Guid
The GUID of the specified entity.
- entityTypeUid
- Type: System.Guid
The GUID of the entity type.
- language
- Type: System.Int32
Specifies the primary language identifier that indicates the language of a country or region.
Return value
Type: WebSvcAdmin.DepartmentsDataSetContains the list of departments for the specified entity.
The entity type can be a project, resource, or enterprise project type, or an Optimizer analysis, driver, or prioritization. You can determine the entity type by using the following properties:
The ReadDepartmentsByEntity method should not be called for a resource that does not exist. When you create a resource by using the CreateResources method, the entityUid value is temporary until the CreateResource method finishes. Then get the final RES_UID value by using the ReadResources method.
Project Server Permissions
Permissions are non-standard. Each row in the following table shows the permissions that are required for the specified type of entity.
Permission | Description |
|---|---|
Required for a project entity. Category permission. | |
Required for a resource entity. Category permission. | |
Required for an Optimizer analysis entity. Global permission. | |
Required for an Optimizer driver entity. Global permission. | |
Required for an Optimizer prioritization entity. Global permission. | |
Both permissions are required for an enterprise project type (EPT) entity. Global permission. |