jira.js
    Preparing search index...

    Function findUsersWithBrowsePermission

    • Returns a list of active users that match the search string. This resource cannot be accessed anonymously and requires the Browse Users global permission. Given an issue key this resource will provide a list of users that match the search string and have the browse issue permission for the issue provided.

      Parameters

      • client: Client
      • Optionalparameters: {
            issueKey?: string;
            maxResults?: number;
            projectKey?: string;
            username?: string;
        }
        • OptionalissueKey?: string

          The issue key for the issue being edited we need to find viewable users for.

        • OptionalmaxResults?: number

          The maximum number of users to return (defaults to 50). The maximum allowed value is 100 (The combination of maxResults and startAt is limited to the first 100 results). If you specify a value that is higher than this number, your search results will be truncated. If you send a request with startAt=98 and maxResults=20, it will only return 2 users.

        • OptionalprojectKey?: string

          The optional project key to search for users with if no issueKey is supplied.

        • Optionalusername?: string

          The username filter, no users returned if left blank

      • Optionaloptions: RequestOptions

      Returns Promise<
          {
              active?: boolean;
              applicationRoles?: {
                  callback?: { [key: string]: unknown };
                  maxResults?: number;
                  pagingCallback?: { [key: string]: unknown };
                  size?: number;
                  [key: string]: unknown;
              };
              avatarUrls?: Record<string, string>;
              deleted?: boolean;
              displayName?: string;
              emailAddress?: string;
              expand?: string;
              groups?: {
                  callback?: { [key: string]: unknown };
                  maxResults?: number;
                  pagingCallback?: { [key: string]: unknown };
                  size?: number;
                  [key: string]: unknown;
              };
              key?: string;
              lastLoginTime?: string;
              locale?: string;
              name?: string;
              self?: string;
              timeZone?: string;
              [key: string]: unknown;
          },
      >