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 > ?

1 Answer 1

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;
0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .