jira.js
    Preparing search index...

    Function createGroup

    • Creates a read-only group in the organization's directory. You can only edit groups from your identity provider.

      Note: An attempt to create a group with an existing name will fail with a 409 (Conflict) error.

      Parameters

      • client: Client
      • parameters: {
            directoryId: string;
            displayName?: string;
            externalId?: string;
            id?: string;
            members?: {
                $ref?: string;
                display?: string;
                type?: string;
                value?: string;
                [key: string]: unknown;
            }[];
            meta?: {
                created?: unknown;
                lastModified?: unknown;
                location?: string;
                resourceType?: string & {}
                | "USER"
                | "GROUP"
                | "DIRECTORY";
                [key: string]: unknown;
            };
            schemas?: string[];
        }
        • directoryId: string

          The SCIM base URL that is generated when conecting an identity provider with SCIM provisioning.

        • OptionaldisplayName?: string

          Group display name. This is a immutable, required, and read-only field.

        • OptionalexternalId?: string

          Identifier defined by provisioning client. CaseExact. Uniqueness is controlled by client.

        • Optionalid?: string

          Unique identifier defined by Atlassian SCIM Service. This is a read-only and case-sensitive field. It is ignored if specified in the payload during user creation or modification.

        • Optionalmembers?: {
              $ref?: string;
              display?: string;
              type?: string;
              value?: string;
              [key: string]: unknown;
          }[]

          Group members

        • Optionalmeta?: {
              created?: unknown;
              lastModified?: unknown;
              location?: string;
              resourceType?: string & {} | "USER" | "GROUP" | "DIRECTORY";
              [key: string]: unknown;
          }
          • Optionalcreated?: unknown

            The DateTime that the resource was added to Atlassian SCIM service. This is a read-only field.

          • OptionallastModified?: unknown

            The most recent DateTime that the details of this resource were updated. This is a read-only field.

          • Optionallocation?: string

            The URI of the resource being returned. This is a read-only field.

          • OptionalresourceType?: string & {} | "USER" | "GROUP" | "DIRECTORY"

            The name of the resource type of the resource. This is a read-only and case-sensitive field.

        • Optionalschemas?: string[]

          SCIM schemas that define the attributes present in the current JSON structure. This ia a required field during user creation or modification.

      • Optionaloptions: RequestOptions

      Returns Promise<
          {
              displayName?: string;
              externalId?: string;
              id?: string;
              members?: {
                  $ref?: string;
                  display?: string;
                  type?: string;
                  value?: string;
                  [key: string]: unknown;
              }[];
              meta?: {
                  created?: Date;
                  lastModified?: Date;
                  location?: string;
                  resourceType?: string & {}
                  | "USER"
                  | "GROUP"
                  | "DIRECTORY";
                  [key: string]: unknown;
              };
              schemas?: string[];
              [key: string]: unknown;
          },
      >