You need to sign in to do that
Don't have an account?
Trainee second visionit
how to restrict one user to delete record..
please help me...
i have an one profile xyz that have an multiple users.xyz profile has full access permission.
my question is to restrict only one user to delete permission on that profile.
can i use trigger?then reply me code pls....
thanks.
i have an one profile xyz that have an multiple users.xyz profile has full access permission.
my question is to restrict only one user to delete permission on that profile.
can i use trigger?then reply me code pls....
thanks.
I test the same code and working fine.
Create a Custom Label Called UserGroup and add userid (18 Digit) in comma separated value if you have multiple.
This should work without any issue. Simply Copy-Paste the above code will work.
All Answers
Setup|AdministrationSetup|Security Controls|Sharing Settings.
OR
Settings >> Manage Users >> Profiles >> Object Permissions >> Uncheck on "Delete" next to the appropriate records.
Hope this helps you.
For this situation you need to create a permission set for particular user that want to assign permission. Please follow this url
https://developer.salesforce.com/docs/atlas.en-us.securityImplGuide.meta/securityImplGuide/perm_sets_overview.htm
if you need any assistance please let me know
Kindly mark my solution as the best answer if it helps you.
Thanks
Mukesh
Example:
can you restrict any profile permission of single user through permission set?
For example, let’s say you have several users with a profile called Sales User. This profile allows assignees to read, create, and edit leads. Some, but not all, of these users also need to delete and transfer leads. Instead of creating another profile, create a permission set.
Regards
Mukesh
Or
In the trigger, you can put a condition for that particular user ( But it will going to be static and not the best way).
Thanks
Vinod
There are multiple users, who have same profile and have permission of delete records.
We have to restric only one user from deleting records in any object.
I test the same code and working fine.
Create a Custom Label Called UserGroup and add userid (18 Digit) in comma separated value if you have multiple.
This should work without any issue. Simply Copy-Paste the above code will work.
Please apply this code
Kindly mark my solution as the best answer if it helps you.
Thanks
Mukesh
My Requirement is i have public group let say name 'sample' which has two user namely x,y. I want to restrict them to Insert,Delete,Update record of Specific Object,and if any one user is present in the above profile in Another Profile it should give acces to insert,delete,update record.
Using Apex Trigger how can we achive this.
Send me the code.
Regards,
sachin sonekar