The Complete Strapi™ Course with Plugins and Deployment - Admin RBAC: Restricting Plugin Use to Specific Roles

The Complete Strapi™ Course with Plugins and Deployment - Admin RBAC: Restricting Plugin Use to Specific Roles

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

The video tutorial explores how to implement role-based access control (RBAC) in Strappy, focusing on setting up granular permissions for plugins. It covers the process of editing the bootstrap.js file to register actions and permissions, and how these can be used to control access to specific routes and menu items. The tutorial also discusses the limitations of the community edition of Strappy, particularly in terms of editing permissions for different roles. Finally, it demonstrates testing the setup by inviting a new user and verifying the visibility of plugin links based on roles.

Read more

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a limitation of the community edition of Strappy regarding role-based access control?

It cannot be used for commercial purposes.

It allows only one admin user.

It does not support any plugins.

It has limited control over user roles and permissions.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What file must be edited to set up more granular control on admin user actions?

index.html

bootstrap.js

server.js

config.js

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of creating a role-based access control actions array?

To store user data

To log user activities

To define permissions for plugin functionalities

To manage server configurations

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What key is used to specify the tab where actions should be shown in the admin panel?

pluginName

UID

section

displayName

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you ensure a menu item is only visible to users with specific permissions?

By setting a password

By deleting the menu item for unauthorized users

By using a permissions key in the menu item registration

By hiding the menu item in CSS

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why can't the Super Admin permissions be edited in the community edition of Strappy?

Because they are hardcoded

For security reasons

Due to a software bug

Because they are not needed

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens if you comment out the permissions part in the admin index file?

The plugin becomes invisible to all users

The plugin stops working

The plugin becomes visible to all users

The plugin gets deleted

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?