Role-based Security Flashcards

1
Q

Which action would you use to verify if a user has a specific role in a server-side logic flow?
A) CheckRole
B) AssignRole
C) VerifyRole
D) GrantRole

A

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

In Service Studio, where can you find the built-in roles Anonymous and Registered?
A) In the Logic tab under the Roles folder
B) In the Data tab under the Users module
C) In the Interface tab under the Widgets section
D) In the Database tab

A

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What happens if only the Manager role is selected for a screen?
A) Only users with the Manager role can access the screen
B) All users can access the screen
C) Only registered users can access the screen
D) Users with the Anonymous role can access the screen

A

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

If a screen has the Anonymous role selected, what does this imply?
A) Only logged-in users can access the screen
B) Any user, even without login, can access the screen
C) Only admins can access the screen
D) The screen is locked for all users

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which action allows you to assign a role to a user in OutSystems logic?
A) AssignRole
B) GrantRole
C) CheckRole
D) RevokeRole

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How do you manually assign a role to a user in the Users application?
A) By using the GrantRole action in the screen logic
B) By selecting the role from the Roles section in the user details page
C) By setting the role in the Application interface
D) By modifying the database directly

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How can you configure a screen to restrict access only to Manager and Employee roles?
A) By checking both Manager and Employee roles in the Screen Roles property
B) By adding a CheckRole action for both roles
C) By disabling all other roles in the Screen interface
D) By removing access for other users in the Roles module

A

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

When assigning roles to a user in the Users application, how can you identify roles across different modules?
A) By checking the Role description
B) By looking at the Module name next to the role in the assignment field
C) By accessing the Roles folder in Service Studio
D) By adding roles in the Logic tab

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

In the logic flow for Add Manager, what happens if the Employee already has the Manager role?
A) The role is granted again
B) No action is required, and the flow ends
C) The role is revoked
D) The user is prompted to confirm the role assignment

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What happens when the GrantRole action is called inside a logic flow?
A) The user is checked for permissions
B) The role is assigned to the user for that session only
C) The role is permanently granted to the user
D) The screen refreshes to show updated permissions

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How do you check if a user has the Manager role before allowing them to create or update an employee in the database?
A) Use the GrantRole action before performing the operation
B) Add a CheckRole action before executing the server action
C) Use the RevokeRole action after the operation
D) Assign the role during the database update

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What should be done after adding a new Role in Service Studio?
A) Restart the server
B) Publish the module using the 1-Click Publish button
C) Assign the role to a user automatically
D) Refresh the database connection

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How can the EmployeeDetail screen be restricted so that only users with the Manager role can access it?
A) By removing access for all other roles
B) By unchecking all roles except Manager in the Screen Roles property
C) By adding a CheckRole action in the screen’s logic flow
D) By adding a custom authorization script

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the purpose of the Success parameter in the Save On Click action when updating an employee’s details?
A) To indicate whether the role has been granted
B) To determine if the user has been authenticated
C) To return the result of the operation and indicate if it was successful
D) To revoke permissions if the update fails

A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Considering the built-in Role Actions, which of the following options is false?

A. The CheckRole Action checks if a user has that particular Role.
B. The GrantRole Action allows to grant a Role to a user programmatically.
C. The RevokeRole Action allows to remove a Role from a user programmatically.
D. The CreateUserWithRole Action creates an end-user and assigns it the Role.

A

D.
This Action does not exist. This is actually a two step operation: create the user, and assign a role to the user.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly