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 > ?
1 Answer
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;