Hierarchy

  • CommonHttpService
    • UserPropertiesService

Constructors

  • Internal

    Create a new instance of the service.

    Parameters

    • getClientInstance: (() => CommonHttpClient)
        • (): CommonHttpClient
        • Returns CommonHttpClient

    Returns UserPropertiesService

Methods

  • Deletes a property for the given user. For more information about user properties, see Confluence entity properties. Note, these properties stored against a user are on a Confluence site level and not space/content level.

    Permissions required: Permission to access the Confluence site ('Can use' global permission).

    Parameters

    • params: {
          key: string;
          userId: string;
      }
      • key: string

        The key of the user property.

      • userId: string

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

    Returns Promise<void>

    DELETE /wiki/rest/api/user/{userId}/property/{key} @scopes-current write:user.property:confluence

  • Returns the properties for a user as list of property keys. For more information about user properties, see Confluence entity properties. Note, these properties stored against a user are on a Confluence site level and not space/content level.

    Permissions required: Permission to access the Confluence site ('Can use' global permission).

    Parameters

    • params: {
          limit?: number;
          start?: number;
          userId: string;
      }
      • Optionallimit?: number

        The maximum number of properties to return per page. Note, this may be restricted by fixed system limits.

      • Optionalstart?: number

        The starting index of the returned properties.

      • userId: string

        The account ID of the user to be queried for its properties.

    Returns Promise<UserPropertyKeyArray>

    Returned if the requested properties are returned.

    GET /wiki/rest/api/user/{userId}/property @scopes-current read:user.property:confluence

  • Updates a property for the given user. Note, you cannot update the key of a user property, only the value. For more information about user properties, see Confluence entity properties. Note, these properties stored against a user are on a Confluence site level and not space/content level.

    Permissions required: Permission to access the Confluence site ('Can use' global permission).

    Parameters

    • params: {
          key: string;
          userId: string;
          userPropertyUpdate: UserPropertyUpdate;
      }
      • key: string

        The key of the user property.

      • userId: string

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

      • userPropertyUpdate: UserPropertyUpdate

        The user property to be updated.

    Returns Promise<void>

    PUT /wiki/rest/api/user/{userId}/property/{key} @scopes-current write:user.property:confluence

  • Method to initialize the class. Normally used to set up validation rules.

    Returns void