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 SpacePermissionV1 {
    anonymousAccess: boolean;
    id?: number;
    operation: OperationCheckResult;
    subjects?: {
        _expandable?: {
            group?: string;
            user?: string;
        } & {
            [key: string]: unknown;
        };
        group?: {
            limit?: number;
            results: Group[];
            size: number;
            start?: number;
        } & {
            [key: string]: unknown;
        };
        user?: {
            limit?: number;
            results: (null | UserV1)[];
            size: number;
            start?: number;
        } & {
            [key: string]: unknown;
        };
    } & {
        [key: string]: unknown;
    };
    unlicensedAccess: boolean;
}

Hierarchy

  • Record<string, unknown>
    • SpacePermissionV1

Properties

anonymousAccess: boolean

Grant anonymous users permission to use the operation.

id?: number

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

subjects?: {
    _expandable?: {
        group?: string;
        user?: string;
    } & {
        [key: string]: unknown;
    };
    group?: {
        limit?: number;
        results: Group[];
        size: number;
        start?: number;
    } & {
        [key: string]: unknown;
    };
    user?: {
        limit?: number;
        results: (null | UserV1)[];
        size: number;
        start?: 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.