You need to sign in to do that
Don't have an account?
Queplix
Security Profile to Objects permissions retrieval
Hi All,
How can I programmatically retrive which standard and custom objects a given security profile has access to?
Also how to retrieve field level permissions?
Thanks
For a particular record of a Object, do we have any calls to check if the current user has Read, Edit or Delete access to it?
We found that there is no method which can determine the access permission of the current user on a record. But there is a alternative solution. We created an apex class with sharing which has a method. That method takes in the record, makes a update call and then rollbacks the transaction. If during the update, any exception occurs, catch it and see if it of the type restricitng the user saying no permission. If yes, then it means user does not has the permission. Also since we will rollback, no actual update will happen in the database.
Hope it is clear.
@rajesh shah sir...
I think,
We Can check d permission for current user with the help of describeSobject result.
DescribeSoblectResult.Iscreatable();
isdeletable. etc
We jst cant check access rights of another user.
thanks
Tushar dodia