UPDATED April 3rd.

Morten Zohnesen (LinkedIn Link) Provided some great feedback to my post.

Quick summary of changes My post is focused solely on personal ownership of records. If you are using team ownership of the records, the “user” ownership applies to the entire team then instead. It’s possible to also set user privileges to entire tables to “Organization” and furthermore you can set user privileges in security roles so that only Team privileges apply. I will probably have to make an entire post about this. So, this post is only focused on working with tables and security roles where user ownership is in use.

Furthermore, Morten noted that I should update the wording on the cascading aspects of ownership in table relationships. Previously I used the word “Sharing” to indicate that records were shared, but in fact the ownership is changed to the owner of the parent record, similar to the “Assign” operation.

Original post:

In this post I want to talk about some of the many aspects of security roles and how they work. It’s something I often get asked about and worth spending some time on.

Put shortly, when working with security roles, you want to either limit, expand, or simply understand the basic question:

Who can do What

In Microsoft terminology we use the following terms to describe this:

Defining Who is done via the Access Level
And
Defining What is done via the Privilege Type

I’m going to split this post up into different two different sections from the picture below, the first is the different Access Levels that are selected from the dropdown – User, Organization, etc. – and second is the different Privilege Types as seen in the columns – Create, Read, Write, etc. – but first we also need to go through some basics of how security roles function in the realm of the Power Platform.

Basics of Security Roles

Owning user When working with security roles and managing access based on the tables, the most important field to be aware of is the “owner” field. As this will affects everything discussed here. Records need to be owned by a user, and either the user, or the relationship(relationship as in, being part of the same business unit, organization, etc.) a user has to the owning user is key to how we want to set up our security roles.

Relationships Furthermore, when creating relationships between tables, you can select how the relationship affects records from the parent to the child table. If you select “Parental” as the relationship type, then all records on the child table will get the same type of ownership as the parent record (cascading), when the two records are linked. If you want to avoid this, you can also select “Custom” relationship and define the cascading nature of each element as seen in the image below.

Access levels

User

This access level restricts the access to the table records to only the include records that have the user assigned as owner (or those that are shared with the user). For example, when selecting the “User” Access level under the “Read” Privilege type, the user is only able to read records from the table that the user either Owns or that have been shared with the user.

Business Unit

All users in the business unit of the owner have access to the record. The same is true of records shared with the business unit directly (the business unit can be selected in the same way as a user or a team). The Business unit can also be the owner of the records given that the business unit has the correct permissions for this.

Parent: Child Business Unit

Users can access any record in their own business unit and also the records of all child business units. Seeing as business units can be set up hierarchically this means that all business units below the user’s business units are considered “child” business units.

Organization

All users within the organization, irregardless of business units, have access to the record to perform the given privilege in question.

Privilege types

Create

The ability to create records on any table. The significance of this being either “User”, “Business Unit” or “Organization” only has any meaning when working with a combination of Tables that use either the User or Team setting. When working with “Organization” ownership. We no longer use the User or Business unit settings as they do not apply the same way.

Read

This setting is valid for any type of table. The ability to read records based on the permissions you have for the table. For User you can only see records that are assigned directly to you or have been shared with you using the “Assign” function.

If you only have the “User” permission for a table, any records in a table that is not assigned or shared with you will not show up in any view and be inaccessible even with a direct link to the record.

Write

Same as with read, this controls the ability to make changes to any field on the record itself.

For example:

A user could have read permissions on the “Organization” level for a table, but only be able to write to some of them because the user was only given *User access to the Write Privilege

Delete

This defines the ability of a user to delete record within the table. Keep in mind that if a user has the ability to Delete records with organization as the Access Level, but only has Business Unit as the Access level for the Read Privilege. The user will not be able to delete record outside of their business unit via the Power App. However, it makes sense to keep the access levels at a similar level to avoid confusion. Generally providing the Delete Access Level is something that should be kept to as few users as possible and deactivating records will in most cases be adequate.

Append

This allows the user to append or associate a record with another record. An example of this could be that I have a table of all the boat trips I go on. For each boat trip I maintain a log of the cities I have visited along the trip. I want to store the information about each city visited on each trip in a separate table. I therefore create a second table called City. In order to append the record of each city visited for each trip. I need to have Append rights to the City table.

Append To

This allows the user to append or associate records from other tables to the table in question.

Continuing from my previous examples. The user needs to be provided with Append To access to the Boat Trip table in order to complete the Append and Append to operation between the Boat Trip table and the City table.

Assign

This gives the user the ability to assign records from the table to other users, provided that the other user also has read rights to the table in question.

Share

This gives the user the ability to share the record in question with another user. It also requires that the user is able to Read records on the table in question.

Unlike the Assign Privilege Type, simply sharing a record does not change the ownership of the record. It merely adds the user. When sharing it’s possible to restrict the users Access Levels directly. The sharing cannot override the users own access levels, and can only provide access up to the limits posed in their own security role.

For example:

Aser A has “User” access to the read, Write, Delete and Share privileges to records on the Boat Trip table. User B has “User” access to the Read and Write privileges. But not Delete If user A shares a record with User B. Then it will not be possible to assign the Delete access level to the user, even if user A specifically selects this option while sharing.

I hope you found this overview helpful. Let me know if you have any questions or comments or things that I missed.

One response to “Deep-Dive in Power Platform Security Roles – User based privileges”

  1. […] Deep-Dive in Power Platform Security Roles – Power Apps Viking (Fellow Projectum MVP Søren Weber) […]

Leave a Reply

Designed with WordPress

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.
Cookies settings
Accept
Privacy & Cookie policy
Privacy & Cookies policy
Cookie name Active

Privacy Policy

What information do we collect?

We collect information from you when you register on our site or place an order. When ordering or registering on our site, as appropriate, you may be asked to enter your: name, e-mail address or mailing address.

What do we use your information for?

Any of the information we collect from you may be used in one of the following ways: To personalize your experience (your information helps us to better respond to your individual needs) To improve our website (we continually strive to improve our website offerings based on the information and feedback we receive from you) To improve customer service (your information helps us to more effectively respond to your customer service requests and support needs) To process transactions Your information, whether public or private, will not be sold, exchanged, transferred, or given to any other company for any reason whatsoever, without your consent, other than for the express purpose of delivering the purchased product or service requested. To administer a contest, promotion, survey or other site feature To send periodic emails The email address you provide for order processing, will only be used to send you information and updates pertaining to your order.

How do we protect your information?

We implement a variety of security measures to maintain the safety of your personal information when you place an order or enter, submit, or access your personal information. We offer the use of a secure server. All supplied sensitive/credit information is transmitted via Secure Socket Layer (SSL) technology and then encrypted into our Payment gateway providers database only to be accessible by those authorized with special access rights to such systems, and are required to?keep the information confidential. After a transaction, your private information (credit cards, social security numbers, financials, etc.) will not be kept on file for more than 60 days.

Do we use cookies?

Yes (Cookies are small files that a site or its service provider transfers to your computers hard drive through your Web browser (if you allow) that enables the sites or service providers systems to recognize your browser and capture and remember certain information We use cookies to help us remember and process the items in your shopping cart, understand and save your preferences for future visits, keep track of advertisements and compile aggregate data about site traffic and site interaction so that we can offer better site experiences and tools in the future. We may contract with third-party service providers to assist us in better understanding our site visitors. These service providers are not permitted to use the information collected on our behalf except to help us conduct and improve our business. If you prefer, you can choose to have your computer warn you each time a cookie is being sent, or you can choose to turn off all cookies via your browser settings. Like most websites, if you turn your cookies off, some of our services may not function properly. However, you can still place orders by contacting customer service. Google Analytics We use Google Analytics on our sites for anonymous reporting of site usage and for advertising on the site. If you would like to opt-out of Google Analytics monitoring your behaviour on our sites please use this link (https://tools.google.com/dlpage/gaoptout/)

Do we disclose any information to outside parties?

We do not sell, trade, or otherwise transfer to outside parties your personally identifiable information. This does not include trusted third parties who assist us in operating our website, conducting our business, or servicing you, so long as those parties agree to keep this information confidential. We may also release your information when we believe release is appropriate to comply with the law, enforce our site policies, or protect ours or others rights, property, or safety. However, non-personally identifiable visitor information may be provided to other parties for marketing, advertising, or other uses.

Registration

The minimum information we need to register you is your name, email address and a password. We will ask you more questions for different services, including sales promotions. Unless we say otherwise, you have to answer all the registration questions. We may also ask some other, voluntary questions during registration for certain services (for example, professional networks) so we can gain a clearer understanding of who you are. This also allows us to personalise services for you. To assist us in our marketing, in addition to the data that you provide to us if you register, we may also obtain data from trusted third parties to help us understand what you might be interested in. This ‘profiling’ information is produced from a variety of sources, including publicly available data (such as the electoral roll) or from sources such as surveys and polls where you have given your permission for your data to be shared. You can choose not to have such data shared with the Guardian from these sources by logging into your account and changing the settings in the privacy section. After you have registered, and with your permission, we may send you emails we think may interest you. Newsletters may be personalised based on what you have been reading on theguardian.com. At any time you can decide not to receive these emails and will be able to ‘unsubscribe’. Logging in using social networking credentials If you log-in to our sites using a Facebook log-in, you are granting permission to Facebook to share your user details with us. This will include your name, email address, date of birth and location which will then be used to form a Guardian identity. You can also use your picture from Facebook as part of your profile. This will also allow us and Facebook to share your, networks, user ID and any other information you choose to share according to your Facebook account settings. If you remove the Guardian app from your Facebook settings, we will no longer have access to this information. If you log-in to our sites using a Google log-in, you grant permission to Google to share your user details with us. This will include your name, email address, date of birth, sex and location which we will then use to form a Guardian identity. You may use your picture from Google as part of your profile. This also allows us to share your networks, user ID and any other information you choose to share according to your Google account settings. If you remove the Guardian from your Google settings, we will no longer have access to this information. If you log-in to our sites using a twitter log-in, we receive your avatar (the small picture that appears next to your tweets) and twitter username.

Children’s Online Privacy Protection Act Compliance

We are in compliance with the requirements of COPPA (Childrens Online Privacy Protection Act), we do not collect any information from anyone under 13 years of age. Our website, products and services are all directed to people who are at least 13 years old or older.

Updating your personal information

We offer a ‘My details’ page (also known as Dashboard), where you can update your personal information at any time, and change your marketing preferences. You can get to this page from most pages on the site – simply click on the ‘My details’ link at the top of the screen when you are signed in.

Online Privacy Policy Only

This online privacy policy applies only to information collected through our website and not to information collected offline.

Your Consent

By using our site, you consent to our privacy policy.

Changes to our Privacy Policy

If we decide to change our privacy policy, we will post those changes on this page.
Save settings
Cookies settings

Discover more from Power Apps Viking

Subscribe now to keep reading and get access to the full archive.

Continue reading