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.

  7. Select the Core Records tab.

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

  9. Select the Custom Entities tab.

  10. Scroll down and 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 Entities tab for the Environmental user role, locate the Milestone table privileges.

  2. Select the Write privilege (third circle from the left) three times to change the access level circle to Business Unit.

    Access levels for Milestone table.

  3. Locate the Outcome table privileges.

  4. Select the Write privilege three times to change the access level circle to Business Unit.

    Access levels for Outcome table.

  5. Select Save.

Task 1.3 – Add privileges for Project Outcome

  1. In the Custom Entities tab for the Environmental user role, locate the Project Outcome table privileges.

  2. Select the Project Outcome name four times to change all privilege access levels to Organization.

  3. Select the Delete privilege (fourth circle from the left) once to change the access level circle to None Selected.

    Access levels for Project Outcome table.

  4. Select Save.

Task 1.4 – Modify miscellaneous privileges

  1. Select the Core Records tab.

  2. Select the Data Import name four times to change all privilege access levels to None Selected.

  3. Select the Data Map name three times to change all privilege access levels to None Selected.

  4. Select the Import Source File name four times to change all privilege access levels to None Selected.

  5. Locate the Connection table privileges.

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

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

  8. Locate the Account table privileges.

  9. Select the Delete privilege four times to change the access level circle to None Selected.

  10. Locate the Contact table privileges.

  11. Select the Delete privilege four times to change the access level circle to None Selected.

  12. Scroll down to Miscellaneous Privileges.

  13. Select the View Audit History privilege to change the access level circle to Organization.

  14. Select the Business Management tab.

  15. Scroll down to Privacy Related Privileges.

  16. Select the Export to Excel privilege to change the access level circle to None Selected.

  17. Select the Print privilege to change the access level circle to None Selected.

  18. Scroll down to Miscellaneous Privileges.

  19. Select the Bulk Edit privilege to change the access level circle to None Selected.

  20. Select the Merge privilege to change the access level circle to None Selected.

  21. Select Save and Close.

  22. Select Done.

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.