Interface User


public interface User

Holds information about the invoking Salesforce user.

Method Summary 

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.

Method Details 

getId 

@Nonnull java.lang.String getId()

Returns the user’s ID.

Returns: The user’s ID.

getUsername 

@Nonnull java.lang.String getUsername()

Returns the name of the user.

Returns: The name of the user.

getOnBehalfOfUserId 

@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.

Product Retirement Announcement

Salesforce Functions is no longer available for purchase or renewal. To preserve the capabilities that Salesforce Functions provided to your org, deploy an alternative solution before your existing order term ends. See Salesforce Functions Retirement for more information on migrating your functions. Contact your Salesforce Account Executive for more information on Heroku.