Authorization

User role Assignment and Role Management

In the application development process with Kuika, it is necessary to define roles for users for role-based authorization processes. Through the system actions provided by Kuika, you can assign a role to a user or remove a user's role.

Within the scope of this learning content, we will examine together how the process of defining roles to application users is carried out within the scope of a sample scenario.

In the application development process with Kuika, it is necessary to define roles for users for role-based authorization processes. Through the system actions provided by Kuika, you can assign a role to a user or remove a user's role.

Within the scope of this learning content, we will examine together how the process of defining roles to application users is carried out within the scope of a sample scenario.

Within the scope of the example scenario, I Have an Idea! Let's perform the role definition process together for the user we created in the new user creation process in the web application.

  1. First, let's perform a small design process for role definition.
  2. I Have an Idea! Open the new user creation screen in the web application.
  3. Add a Row to the screen and turn it into a single column.
  4. Add a Horizontal Stack inside the column.
  5. Add Label, Switch and Label in the Horizontal Stack respectively.
  6. Make content and style edits.
  7. Now select the Add new user and save user button.
  8. Add the If Then Else action in the Condition category.
  9. Then proceed to specify the condition state in the action.
  10. Click Symbol Picker under the Will Execute if heading.
  11. Select the last Switch you added in the Components category.
  12. Select Is Equal To as the condition and leave the default Switch active.
  13. Add the Add User To Role action in If Actions.
  14. For the Role Name parameter, select the Manager role from the Role List category in Symbol Picker.
  15. For Username, select the value of the Email element on the screen from the Components category.
  16. Then add the Add User To Role action to Else Actions again.
  17. With a similar process, select the Personnel role for the Role Name parameter.
  18. For Username, select the value of the Email element on the screen.
  19. Finally, drag the If Then Else action just below the Create User action.

With these actions, you can quickly execute the authorization and role assignment processes of the users you add to your application.

Dosyalar

Yardımcı kaynaklar

Sözlük