We are trying to create a custom field on lead object using metadata api, But it fails with the error "INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY". We have checked the permissions for the respective profile , we see below permissions are already provided
"Modify Metadata Through Metadata API Functions " "Create,Delete,Update,Modify All on Lead & custom objects" "Manage Leads"
Any permission or any custom setting that could create this issue ?
Thanks in advance