Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
UserRole
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search(), update(), upsert()
Special Access Rules
As of Summer ’20 and later, only users with the View Roles and Role Hierarchy permission can access this object, and only users with the Manage Roles permission can edit this object.
Fields
| Field | Details |
|---|---|
| CaseAccessForAccountOwner |
|
| ContactAccessForAccountOwner |
|
| DeveloperName |
|
| ForecastUserId |
|
| IsPartner |
|
| MayForecastManagerShare |
|
| Name |
|
| OpportunityAccessForAccountOwner |
|
| ParentRoleId |
|
| PortalAccountId |
|
| PortalAccountOwnerId |
|
| PortalRole |
|
| PortalType |
|
| RollupDescription |
|
Usage
Use this object to query the set of currently configured user roles in your organization. Use it in your client application to obtain valid UserRole IDs to use when querying or modifying a User record.