CRM Javascript load SecLib::AccessCheckEx failed. Returned hr

You might come across a weird type of error on load event (or anywhere else) if you are trying to read data from a different entity.

“SecLib::AccessCheckEx failed. Returned hr = -2147187962, ObjectID: 86369f24-cc3d-e111-82bf-0050569d003d, OwningUser: 803962ed-8a92-e011-a5bc-0050569d0012 and CallingUser: 42e9d69c-a865-e411-bd98-005056aa4d5a”

This error usually appears if logged in user does not have read access to entity on organization level.

For example security role ABC is assigned to logged in user XYZ however ABC has read access only to business unit as can see in screenshot below (red highlighted)

if we change this to organization level then this error disappears or try to access a record which belongs to logged in user’s business unit.

Comments are closed.