This object represents a permission for given space. Permissions consist of at least one operation object with an accompanying subjects object.

The following combinations of operation and targetType values are valid for the operation object:

  • 'create': 'page', 'blogpost', 'comment', 'attachment'
  • 'read': 'space'
  • 'delete': 'page', 'blogpost', 'comment', 'attachment'
  • 'export': 'space'
  • 'administer': 'space'
interface SpacePermissionCreate {
    anonymousAccess: boolean;
    operation: OperationCheckResult;
    subjects?: {
        group?: {
            results: GroupCreate[];
            size: number;
        } & {
            [key: string]: unknown;
        };
        user?: {
            results: (null | UserV1)[];
            size: number;
        } & {
            [key: string]: unknown;
        };
    } & {
        [key: string]: unknown;
    };
    unlicensedAccess: boolean;
}

Hierarchy

  • Record<string, unknown>
    • SpacePermissionCreate

Properties

anonymousAccess: boolean

Grant anonymous users permission to use the operation.

An operation and the target entity that it applies to, e.g. create page.

subjects?: {
    group?: {
        results: GroupCreate[];
        size: number;
    } & {
        [key: string]: unknown;
    };
    user?: {
        results: (null | UserV1)[];
        size: number;
    } & {
        [key: string]: unknown;
    };
} & {
    [key: string]: unknown;
}

The users and/or groups that the permission applies to.

unlicensedAccess: boolean

Grants access to unlicensed users from JIRA Service Desk when used with the 'read space' operation.