Complete the code to share a Figma file with view-only access.
figmaFile.share({ access: '[1]' })Setting access to view allows others to see the file without editing rights.
Complete the code to add a user with comment permission to a Figma file.
figmaFile.addUser('user@example.com', '[1]')
Using comment permission lets the user add comments but not edit the design.
Fix the error in the code to set file permissions correctly.
figmaFile.setPermissions({ role: '[1]' })The correct role keyword in Figma API is view, not 'viewer' or 'reader'.
Fill both blanks to share a file with edit permission and notify the user.
figmaFile.share({ access: '[1]', notify: [2] })Setting access to edit allows changes, and true sends a notification to the user.
Fill all three blanks to remove a user's access and confirm the action.
figmaFile.removeUser('[1]', { confirm: [2], reason: '[3]' })
Provide the user's email, set confirm to true to confirm removal, and give a reason.
