Interface User


public interface User

Holds information about the invoking Salesforce user.

Modifier and TypeMethodDescription
java.lang.StringgetId()Returns the user's ID.
java.util.Optional<java.lang.String>getOnBehalfOfUserId()Returns the id of the user this user operates in behalf of.
java.lang.StringgetUsername()Returns the name of the user.

@Nonnull java.lang.String getId()

Returns the user's ID.

Returns: The user's ID.

@Nonnull java.lang.String getUsername()

Returns the name of the user.

Returns: The name of the user.

@Nonnull java.util.Optional<java.lang.String> getOnBehalfOfUserId()

Returns the id of the user this user operates in behalf of.

Returns: The id of the user this user operates in behalf of.