function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Jonathan Glass 18Jonathan Glass 18 

Deployment issue when deploying System Adm Standard profile.

Description: 
When Deploying System Administrator Standard profile from one Org to another using ANT we are getting an unprecedented error.

Error:
All Component Failures:
profiles/Admin.profile -- Error: The user license doesn't allow the permission: PermitImpersonation

Solutions tried:
1. - Seek for Metadata (UserPermission or any) on profile which will case the error; none found.
2.-  Verify "Login Access Policies" were the "Administrator Can Log in as Any user" was enable. Also tried deployment with the checkbox disable.
3.- We have used the same Profile and Package.xml to deploy it to another sandbox (not related to the one we want to deploy, and using checkOnly ANT functionality) and it worked  fine.
4.- Contact Support directly; had a call with them, told us to post here.

Any help is much appreciated.
sowmya Inturi 9sowmya Inturi 9
Hi,
Please make sure that you have all the metadata components same in both the orgs.
For example if you have a custom object and the System Administrator has access to it and the destination org doesn't contain the custom object, then while deploying through ant we get such type of errors.

Thanks,
Sowmya.
Jonathan Glass 18Jonathan Glass 18
Hi Sowmya,

Thanks for your reply but we are pretty sure thats not the issue.

As mentioned on solutions tried number 3, we have succesfully deploy the same profile to a brand Org which doesnt had any custom object that we have. 
Also we tried to deploy the same profile to the same Org. (Org with issue to Org with issue, resulting in the same deployment issue).

Regards,

JG