UIAccessibility.GuidedAccessError.Code.permissionDenied
An error that indicates the app isn’t authorized to perform the requested action.
Declaration
case permissionDeniedDiscussion
For example, this error might indicate that your app is requesting a configuration change but isn’t locked into Single App Mode through a configuration profile.