You need to sign in to do that
Don't have an account?
prathyu katta
how can i know that particular login user has object field access(read/write) permission or not?using coding.
field level access
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
Accessibility Check In SOQL Queries Using WITH SECURITY_ENFORCED: https://newstechnologystuff.com/2019/07/06/accessibility-check-in-soql-queries-using-with-security_enforced/
Enforce Security With the stripInaccessible Method: https://newstechnologystuff.com/2020/04/08/enforce-security-with-the-stripinaccessible-method/
If this answer helps you, please mark it as accepted.
Regards,
Tushar Sharma
All Answers
I was searching for the above way but unfortunately, I was not able to get the field level security for a particular individual but however, I was able to find the below link which states a soql query for field-level security for a profile can you please have a look at it once.
>> https://salesforce.stackexchange.com/questions/71418/soql-statement-to-query-field-level-security-on-particular-profiles
In case if this came in handy can you please choose this as the best answer so that it can be useful for others in the future.
Regards,
Anutej
For example "Schema.sObjectType.Contact.fields.Status__c.isUpdateable())"
Follow this link
https://developer.salesforce.com/page/Enforcing_CRUD_and_FLS
Accessibility Check In SOQL Queries Using WITH SECURITY_ENFORCED: https://newstechnologystuff.com/2019/07/06/accessibility-check-in-soql-queries-using-with-security_enforced/
Enforce Security With the stripInaccessible Method: https://newstechnologystuff.com/2020/04/08/enforce-security-with-the-stripinaccessible-method/
If this answer helps you, please mark it as accepted.
Regards,
Tushar Sharma