Assign Permission Profiles To User
post
/api/restapi/document/assignUser
Use this endpoint to assign document permission profiles to multiple user.
Request
Header Parameters
-
singleTransaction:
Enabling this boolean flag fails to complete the request if an error occurred when validating any user permission profile sent as part of the request.
Allowed Values: [ "true", "false" ]Default Value:false
Supported Media Types
- application/json
Root Schema : ApiEntityDocumentUserPermissions
Type:
object
Title:
Show Source
ApiEntityDocumentUserPermissions
-
documentId: integer
(int64)
The system-generated identifier of the file, folder, or template.
-
path: string
The path of the file or folder from it's root folder.
The field is non-persistable and thus maximum length is not applicable. -
profiles: array
profiles
List of user profiles.
-
scope: string
Allowed Values:
[ "genericPortfolio", "project", "template", "idea", "program", "strategy" ]
The object name of the context the file or folder is created in. -
scopeId: integer
(int64)
The system-generated identifier of the object of the context the file or folder is created in.
Nested Schema : profiles
Type:
array
List of user profiles.
Show Source
-
Array of:
object ApiEntityDocumentProfileInput
Title:
ApiEntityDocumentProfileInput
Nested Schema : ApiEntityDocumentProfileInput
Type:
object
Title:
Show Source
ApiEntityDocumentProfileInput
-
documentProfileId: string
Maximum Length:
255
System-defined identifier of the document profile. -
userName: string
Maximum Length:
255
Username of the user for permission assignment.
Examples
Back to Top
Response
Supported Media Types
- application/json
207 Response
The object was successfully integrated.
Root Schema : ApiEntityDocumentUserPermissionsResponse
Type:
object
Title:
Show Source
ApiEntityDocumentUserPermissionsResponse
-
documentId: integer
(int64)
The system-generated identifier of the file, folder, or template.
-
profiles: array
profiles
Profiles response with individual message and statusCodes.
Nested Schema : profiles
Type:
array
Profiles response with individual message and statusCodes.
Show Source
-
Array of:
object ApiEntityProfileResponse
Title:
ApiEntityProfileResponse
Nested Schema : ApiEntityProfileResponse
Type:
object
Title:
Show Source
ApiEntityProfileResponse
-
message: string
Error message or reason for operation failure is populated. The field is non-persistable and thus maximum length is not applicable.
-
profileId: string
Maximum Length:
255
The system-defined unique identifier of an object profile. -
statusCode: integer
(int32)
The response code representing the state of the API operation.
-
userName: string
Maximum Length:
255
Username of the user for permission assignment.
400 Response
Invalid input for the Document service. Verify the request contains valid data, then resubmit the request.