GET api/userPrivilege/get?projectId={projectId}
Get user privilege based on privilege id
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| projectId | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Get user privilege based on privilege id
API_Data_UserPrivileges| Name | Description | Type | Additional information |
|---|---|---|---|
| Success | boolean |
None. |
|
| Error | ErrorInfo |
None. |
|
| Data | UserPrivileges |
None. |
Response Formats
application/json, text/json
Sample:
{
"Success": true,
"Error": {
"ErrorCode": 1,
"ErrorMessage": "sample string 1"
},
"Data": {
"TaskPrivileges": {
"CanAccess": true,
"CanSubmit": true,
"CanDelete": true,
"CanPowerEditStatus": true,
"CanChangeSubProject": true,
"CanPerformClose": true,
"CanPerformReopen": true,
"CanPerformGroupAction": true
}
}
}
application/xml, text/xml
Sample:
<API_Data_UserPrivileges xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Common">
<Data>
<TaskPrivileges>
<CanAccess>true</CanAccess>
<CanChangeSubProject>true</CanChangeSubProject>
<CanDelete>true</CanDelete>
<CanPerformClose>true</CanPerformClose>
<CanPerformGroupAction>true</CanPerformGroupAction>
<CanPerformReopen>true</CanPerformReopen>
<CanPowerEditStatus>true</CanPowerEditStatus>
<CanSubmit>true</CanSubmit>
</TaskPrivileges>
</Data>
<Error>
<ErrorCode>1</ErrorCode>
<ErrorMessage>sample string 1</ErrorMessage>
</Error>
<Success>true</Success>
</API_Data_UserPrivileges>