CustomPermissionDependency
Represents the dependency between two custom permissions when one custom permission requires that you enable another custom permission.
Introduced in API version 32.0.
describeLayout(), describeSObjects(), query(), retrieve()
- As of Spring ’20 and later, only users with View Setup and Configuration permission can access this object.
-
Type: reference
-
Properties: Filter, Group, Sort
-
Description:
The ID of the custom permission that requires the permission that’s specified in
RequiredCustomPermissionId.This is a relationship field.
-
Relationship name: CustomPermission
-
Relationship type: relationship
-
Refers to: CustomPermission
-
Type: reference
-
Properties: Filter, Group, Sort
-
Description:
The ID of the custom permission that must be enabled when
CustomPermissionIdis enabled.This is a relationship field.
-
Relationship name: RequiredCustomPermission
-
Relationship type: relationship
-
Refers to: CustomPermission
The following Apex class contains a method that returns the IDs of all custom permissions that are required for the given custom permission ID. To use this class, save it in your organization.
For more information about using Apex classes, see the Apex Developer Guide.