The PermissionCheckResult object has the following specification.
Member
Type
Description
reason
string
Optional. A PermissionResultCode value that indicates why the permission was denied if IsAllowed was false.
restrictedSetting
string
Optional. If the PermissionResultCode value in the reason member indicates that a privilege check for the requestor failed, this indicates which privilege failed.