Skip to content

[F] intersectPermissionSets

function intersectPermissionSets(requested, granted): PermissionSet;

Compute the effective grant: everything requested that is also covered by granted. This is what the sandbox will actually be allowed to do — a library never receives more than it asked for, nor more than the user approved.

ParameterType
requestedPermissionSet
grantedPermissionSet

PermissionSet