0

I want to create 66 permission sets in the sandbox through eclipse or another IDE can you please suggest me how i do this through script. please help me > ?

0

You can create a permission set using APEX.

See ObjectPermissions and PermissionSet object for a reference.

Example:

PermissionSet ps = new PermissionSet();
ps.Name='TestPermissionSet';
ps.label='TestPermissionSet';
insert ps;

//insert Object permission for Idea
ObjectPermissions op = new ObjectPermissions();
op.parentId = ps.Id;
op.SobjectType = 'Idea';
op.PermissionsCreate = true;
op.PermissionsRead = true;
insert op;

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.