Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

admCreatePermissionGrant(schemeId, newPermissionGrantStruct)

Package

adm

Alias

Pkg Usage

createPermissionGrant(schemeId, newPermissionGrantStruct)

Description

Excerpt
hiddentrue
Creates a new permission grant.

Creates a new permission grant.

Parameters

Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

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
languagejs
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)
showLabelsfalse
max25
showSpacefalse
cqllabel = "permission_admin_routine" and space = currentSpace ( )
labelsarray_routines