ExamGecko
Question list
Search
Search

Question 100 - Certified B2B Commerce Developer discussion

Report
Export

Which two scoped modules should a developer import in Lightning web components to check user permissions?

A.
@salesforce/permission
Answers
A.
@salesforce/permission
B.
@salesforce/customPermission
Answers
B.
@salesforce/customPermission
C.
@salesforce/hasPermission
Answers
C.
@salesforce/hasPermission
D.
@salesforce/userPermission
Answers
D.
@salesforce/userPermission
Suggested answer: A, B

Explanation:

To check user permissions in Lightning web components, a developer should import two scoped modules: @salesforce/permission and @salesforce/customPermission. The @salesforce/permission module allows the developer to check if the user has access to a standard permission, such as View Setup or Modify All Data. The @salesforce/customPermission module allows the developer to check if the user has access to a custom permission, such as Enable Debug Mode or Manage Orders. The other modules do not exist or are not related to user permissions. Salesforce

Reference: Lightning Web Components Developer Guide: Check User Permissions, Lightning Web Components Developer Guide: Import Salesforce Modules

asked 23/09/2024
Jason Childers
35 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first