Class CreateUserRequest

    • Method Detail

      • organizationId

        public final String organizationId()

        The identifier of the organization for which the user is created.

        Returns:
        The identifier of the organization for which the user is created.
      • name

        public final String name()

        The name for the new user. WorkMail directory user names have a maximum length of 64. All others have a maximum length of 20.

        Returns:
        The name for the new user. WorkMail directory user names have a maximum length of 64. All others have a maximum length of 20.
      • displayName

        public final String displayName()

        The display name for the new user.

        Returns:
        The display name for the new user.
      • password

        public final String password()

        The password for the new user.

        Returns:
        The password for the new user.
      • role

        public final UserRole role()

        The role of the new user.

        You cannot pass SYSTEM_USER or RESOURCE role in a single request. When a user role is not selected, the default role of USER is selected.

        If the service returns an enum value that is not available in the current SDK version, role will return UserRole.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from roleAsString().

        Returns:
        The role of the new user.

        You cannot pass SYSTEM_USER or RESOURCE role in a single request. When a user role is not selected, the default role of USER is selected.

        See Also:
        UserRole
      • roleAsString

        public final String roleAsString()

        The role of the new user.

        You cannot pass SYSTEM_USER or RESOURCE role in a single request. When a user role is not selected, the default role of USER is selected.

        If the service returns an enum value that is not available in the current SDK version, role will return UserRole.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from roleAsString().

        Returns:
        The role of the new user.

        You cannot pass SYSTEM_USER or RESOURCE role in a single request. When a user role is not selected, the default role of USER is selected.

        See Also:
        UserRole
      • firstName

        public final String firstName()

        The first name of the new user.

        Returns:
        The first name of the new user.
      • lastName

        public final String lastName()

        The last name of the new user.

        Returns:
        The last name of the new user.
      • hiddenFromGlobalAddressList

        public final Boolean hiddenFromGlobalAddressList()

        If this parameter is enabled, the user will be hidden from the address book.

        Returns:
        If this parameter is enabled, the user will be hidden from the address book.
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object