English (English) - Change language

AddPermission

What it does

Adds permissions to users or groups to use the specified role in the specified project.

Definition

void AddPermission( int principalId, int projectId, int batchTypeId, int roleType );
    

Parameters

Name Type Description
principalId int User or group ID
projectId int

Project ID

  • -1 - all projects
batchTypeId int

Batch ID

  • -1  - all batch types
  • 0 - batch by default
roleType int User role type.
For possible values, see User role types.

Returned value

N/A

10.11.2020 12:08:04


Please leave your feedback about this article