jira.js
    Preparing search index...

    Function getUserGroups

    • Returns the groups to which a user belongs.

      Permissions required: Browse users and groups global permission.

      Parameters

      • client: Client
      • parameters: { accountId: string }
        • accountId: string

          The account ID of the user, which uniquely identifies the user across all Atlassian products. For example, 5b10ac8d82e05b22cc7d4ef5.

      • Optionaloptions: RequestOptions

      Returns Promise<
          {
              groupId?: string
              | null;
              name?: string;
              self?: string;
              [key: string]: unknown;
          }[],
      >