Confluence.js - Cloud and Server API library
    Preparing search index...

    Interface GetUser

    interface GetUser {
        accountId: string;
        expand?:
            | string
            | string[]
            | (
                | "operations"
                | "details.personal"
                | "details.business"
                | "personalSpace"
                | "isExternalCollaborator"
            )[];
        key?: string;
        username?: string;
    }
    Index

    Properties

    accountId: string

    The account ID of the user, which uniquely identifies the user across all Atlassian products. For example, 384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192.

    expand?:
        | string
        | string[]
        | (
            | "operations"
            | "details.personal"
            | "details.business"
            | "personalSpace"
            | "isExternalCollaborator"
        )[]

    A multi-value parameter indicating which properties of the user to expand.

    • operations returns the operations that the user is allowed to do.
    • details.personal returns the 'Personal' details in the user's profile, like the 'Email' and 'Phone'. Note that these fields have been deprecated due to privacy changes. See the migration guide for details.
    • details.business returns the 'Company' details in the user's profile, like the 'Position' and 'Department'. Note that these fields have been deprecated due to privacy changes. See the migration guide for details.
    • personalSpace returns the user's personal space, if it exists.
    • isExternalCollaborator returns whether the user is an external collaborator user
    key?: string

    This parameter is no longer available and will be removed from the documentation soon. Use accountId instead. See the deprecation notice for details.

    username?: string

    This parameter is no longer available and will be removed from the documentation soon. Use accountId instead. See the deprecation notice for details.