Table plus |
---|
applyColStyleToCell | true |
---|
heading | 0 |
---|
columnTypes | s,s,s,s |
---|
multiple | false |
---|
columnAttributes | style="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold, |
---|
enableSorting | false |
---|
|
Syntax | admCreatePermissionGrant(schemeId, newPermissionGrantStruct) | Package | adm | Alias | | Pkg Usage | createPermissionGrant(schemeId, newPermissionGrantStruct) | |
Description
Excerpt |
---|
|
Creates a new permission grant. |
Creates a new permission grant.
Parameters
Table plus |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
Parameter name | Type | Required | Description |
---|
schemeId | integer | Yes | The id of the scheme where the grant will be added. | newPermissionGrant | JPermissionGrant | Yes | The structure of the permission grant to be created. | |
Return Type
JPermissionGrant
Example
Code Block |
---|
|
JPermissionHolder holder; //https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-permission-schemes/#api-rest-api-3-permissionscheme-get
// holder.parameter = "jira-software-users"; //groupName
holder.type = "group"; //type
holder.value = "be844d8e-13f1-43ea-b70b-bf690c23e3b2"; //groupId
JPermissionGrant[] grants;
JPermissionGrant grant;
grant.holder = holder;
grant.permission = "ADMINISTER_PROJECTS";
return admCreatePermissionGrant(10012, grant); |
See also
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 25 |
---|
showSpace | false |
---|
cql | label = "permission_admin_routine" and space = currentSpace ( ) |
---|
labels | array_routines |
---|
|