Practice Lab 2.1 - Security roles

Scenario

You are a Power Platform functional consultant and have been assigned to the Fabrikam project for the next stage of the project.

In this practice lab, you will be modifying security roles.

There are three security roles in the solution:

  • Environmental administrator
  • Environmental manager
  • Environmental user

You need to add privileges for the new Project Outcome table.

You need to adjust the Write privileges for the Milestone and Outcome tables on the Environmental user role. Currently, users can edit all records on these tables. Users should only be able to edit the records in their business unit.

You need to remove privileges for importing and exporting of data, deleting account and contacts, and add privileges for connection roles and audit history.

Exercise 1 – Modify the Environmental user security role

Task 1.1 – Evaluate security role

  1. Navigate to the Power Apps Maker portal https://make.powerapps.com.

  2. Make sure you are in the Dev One environment.

  3. Select Solutions.

  4. Open the Fabrikam Environmental solution.

  5. In the Objects pane on the left, select Security Roles.

  6. Select the Environmental user role and click Edit.

    Edit security role.

  7. Scroll down to the Core Records section.

    Security role core records.

  8. Scroll down and review the privileges the security role has for the Core Records.

  9. Scroll down to the Custom Tables section.

  10. Select Show all tables.

  11. Enter contoso in the Search by table name or table privilege field.

    Security role custom tables.

  12. Review the privileges the security role has for the tables in the Fabrikam solution. Do not navigate away from this page.

Task 1.2 – Modify Milestone and Outcome privileges

  1. In the Custom Tables section for the Environmental user role, locate the Milestone table privileges.

  2. Select the drop-down for the Write privilege and select Business Unit.

    Access levels for Milestone table.

  3. Locate the Outcome table privileges.

  4. Select the drop-down for the Write privilege and select Business Unit.

    Access levels for Outcome table.

  5. Select Save. Do not navigate away from this page.

Task 1.3 – Add privileges for Project Outcome

  1. In the Custom Tables section for the Environmental user role, locate the Project Outcome table privileges.

  2. Select the ellipses and select Permission Settings.

    Permission Settings.

  3. Select Full Access.

    Full Access permission settings.

  4. Select Save.

  5. Select the drop-down for the Delete privilege and select None.

    Access levels for Project Outcome table.

  6. Select Save. Do not navigate away from this page.

Task 1.4 – Modify standard table privileges

  1. Enter data in the Search by table name or table privilege field.

  2. Locate the Data Import table privileges.

  3. Select the ellipses and select Permission Settings.

  4. Select No Access.

  5. Select Save.

  6. Locate the Data Map table privileges.

  7. Select the ellipses and select Permission Settings.

  8. Select No Access.

  9. Select Save.

  10. Enter import in the Search by table name or table privilege field .

  11. Locate the Import Source File table privileges.

  12. Select the ellipses and select Permission Settings.

  13. Select No Access.

  14. Select Save.

  15. Enter connection in the Search by table name or table privilege field.

  16. Locate the Connection table privileges.

  17. Verify that the Append privilege access level is set to Organization.

  18. Verify that the Append To privilege access level is set to Organization.

  19. Enter account in the Search by table name or table privilege field.

  20. Locate the Account table privileges.

  21. Select the drop-down for the Delete privilege and select None.

  22. Enter contact in the Search by table name or table privilege field .

  23. Locate the Contact table privileges.

  24. Select the drop-down for the Delete privilege and select None.

  25. Select Save. Do not navigate away from this page.

Task 1.5 – Modify miscellaneous privileges

  1. Select the Miscellaneous privileges tab.

  2. Select Show all privileges.

  3. Enter audit in the Search miscellaneous privileges field.

  4. Select the drop-down for the View Audit History privilege and select Organization.

  5. Enter bulk in the Search miscellaneous privileges field.

  6. Select the drop-down for the Bulk Edit privilege and select None.

  7. Enter merge in the Search miscellaneous privileges field.

  8. Select the drop-down for the Merge privilege and select None.

  9. Select Save. Do not navigate away from this page.

Task 1.6 – Modify privacy privileges

  1. Select the Privacy-related privileges tab.

  2. Select Show all privileges.

  3. Enter export in the Search privacy-related privileges field.

  4. Select the drop-down for the Export to Excel privilege and select None.

  5. Enter print in the Search privacy-related privileges field.

  6. Select the drop-down for the Print privilege and select None.

  7. Select Save.

  8. Select <- Back.

Exercise 2 – Solutions

In this exercise, you will export the solution from the Development environment and import it into the Production environment.

Task 2.1 – Export managed solution

  1. Navigate to the Power Apps Maker portal https://make.powerapps.com.

  2. Make sure you are in the Dev One environment.

  3. Select Solutions.

  4. Select the Fabrikam Environmental solution but do not open it.

  5. Select Export solution.

  6. Select Publish to publish all of your recent changes.

  7. Select Next.

  8. Change the version number to 1.1.11.8.

  9. Select Managed for Export as.

  10. Select Export.

  11. The export will be prepared in the background, when the solution is ready select the Download button.

Task 2.2 – Export unmanaged solution

  1. Select the Fabrikam Environmental solution.

  2. Select Export solution.

  3. Select Next.

  4. Change the version number to 1.1.11.8.

  5. Select Unmanaged for Export as.

  6. Select Export.

  7. The export will be prepared in the background, when the solution is ready select the Download button.

Task 2.3 – Import managed solution

  1. Switch environments by using the Environment Selector in the upper right corner of the Maker portal.

  2. Select the Production environment from the list.

  3. Select Solutions.

  4. Select Import solution.

  5. Select Browse, change to the Downloads folder and select FabrikamEnvironmental_1_1_11_8_managed.zip and select Open.

  6. Select Next.

    Note: You should see a notification that the solution package contains an update for a solution that is already installed.

  7. Expand Advanced settings.

  8. Select Upgrade for Solution action.

  9. Select Import. The solution will import in the background.