ExamGecko
Question list
Search
Search

List of questions

Search

Question 8 - Certified B2B Commerce Administrator discussion

Report
Export

Which two scoped modules should a developer import in Lightning web components to check 04m 595

user permissions?

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

Explanation:

To check user permissions in Lightning web components, a developer can import two scoped modules: @salesforce/customPermission and @salesforce/hasPermission. The @salesforce/customPermission module allows the developer to access the custom permissions assigned to the current user. The @salesforce/hasPermission module allows the developer to check if the current user has a specific permission, such as View Setup or Customize Application. These modules can be used to conditionally render or enable components based on the user's permissions.Reference:

[Check User Permissions in Lightning Web Components]

[Custom Permissions]

[User Permissions and Access]

asked 23/09/2024
ajay jaiswal
37 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first