You need to sign in to do that
Don't have an account?
How to assign permission sets to user programmatically in visual force page?
Hi,
I am a newbie in salesforce. Please help me on this.
I have a visualforce page where i choose certain conditions and display the users. How should i assign permissions set to the selected users programmatically?
Can anyone please help me out..
Thanks in advance.
Regards,
Indhu
I am a newbie in salesforce. Please help me on this.
I have a visualforce page where i choose certain conditions and display the users. How should i assign permissions set to the selected users programmatically?
Can anyone please help me out..
Thanks in advance.
Regards,
Indhu
I believe you can query on the PermissionSet and PermissionsetAssignement Objects to get a user assigned to a permission set:
The links beLow explains how you can assign a new permission set to a user:
http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_permissionset.htm
http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_permissionsetassignment.htm
You can use PermissionsetAssignment and Permissionset objects.
PermissionsetAssignment object contains PermissionSetId and AssigneeId fields.You can assign values to those fields and insert the record.
Thanks