3

I'm working on creating a Custom Permission within a new Permission Set in a beta managed package.

My Custom Permission:

<?xml version="1.0" encoding="UTF-8"?>
<CustomPermission xmlns="http://soap.sforce.com/2006/04/metadata">
   <label>Bar</label>
</CustomPermission>

My Permission Set:

<?xml version="1.0" encoding="UTF-8"?>
<PermissionSet xmlns="http://soap.sforce.com/2006/04/metadata">
    <label>Foo</label>
    <userLicense>Salesforce</userLicense>
    <customPermissions>
        <enabled>true</enabled>
        <name>Bar</name>
    </customPermissions>
</PermissionSet>

When I install the managed package for all users, the Custom Permission is automatically assign to all profiles.

Is it possible to not assign it by default in order to use my Permission Set manually instead?

3

When you install a package, the actions that occur are as outlined in Installing Packages. In other words, if the system administrator chooses to install for all users, all profiles get all the permissions; you cannot override this behavior. Instead, choose Install for Admins or Install for Specific Profiles, then you can assign the permission set to users after installation.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.