Represents a user role in your organization.
create(), update(), delete(), describeSObjects(), query(), search(), retrieve(), getDeleted(), getUpdated()
| Field | Field Type | Field Properties | Description |
|---|---|---|---|
| CaseAccessForAccountOwner | picklist | Filter | The case access level for the account owner. |
| ContactAccessForAccountOwner | picklist | Filter | The contact access level for the account owner. |
| ForecastUserId | reference | Filter | The ID of the forecast manager associated with this role. Label is User ID. |
| IsPartner | boolean | Defaulted on create | Indicates whether the user role is a partner who has access to the PRM Portal (true) or not (false). This field is not available for release 9.0 and later. Instead, use PortalType with the value Partner. |
| MayForecastManagerShare | boolean | Filter | Indicates whether the forecast manager can manually share their own forecast. |
| Name | string | Filter | Required. Name of the role. |
| OpportunityAccessForAccountOwner | picklist | Filter | Required. The opportunity access level for the account owner. Note that you cannot set a user role with an opportunity access less than that specified in organization-wide defaults. |
| ParentRoleId | reference | Filter | The ID of the parent role. |
| PortalRole | picklist | Filter | The portal role (either Executive, Manager, User, or PersonAccount). |
| PortalType | picklist | Defaulted on create | This value indicates the type of portal for the role:
|
| RollupDescription | string | Filter | Description of the forecast rollup. Label is Description. |
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.
All users have access to invoke query() or describeSObjects() with this object. If your client application logs in with the “Modify All Data” permission, it can query(), create(), delete(), and update()UserRole records.