en en en de en en en da da it da it da da es en da da en da da de da da da sv da en da en en en da pt fr fr de sv da da sv da da en ca en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en da da da tr da en en en en en en en en en ca en en lt en en en en en en en kn da en en nl nl da en da de de en en nl en en nl nl sv en da de de en en nl en en nl nl sv en da de de en en nl en en sv nl da en da de da en en nl en en nl nl sv en da da da en en nl en en nl nl sv en da da da en en nl en en nl nl sv en da de de en en de da da en en da da en da ms en en en en sv da fr da da en en en zh da de en en en en it en da da en da da da
Sharing a canvas app built on top of Common Data Service | Microsoft Power Apps
Ressourcer til markedslanceringstjenester til partner
Linh Tran, Senior Program Manager, 15. juni 2018
Common Data Service for Apps has a powerful enterprise grade security model that allows you to group users in security roles and give those roles varying levels of access to entities that some of our most sophisticated business apps are built on. Depending on a user’s role within an organization, you can limit or expand their access to certain pieces of information for security and data integration purposes. That’s what makes apps built on top of Common Data Service so powerful. However, due to te sophistication of te security model, it can get complex when it comes to figuring out how to configure security access to your app.  After building a canvas app using Common Data Service as te backend, many people have asked ‘how do I share this app with other users in my organization and make sure not only they have access to my app but also te Common Data Service as well’? This blog post outlines te steps that help you share access to te data in te Common Data Service that your canvas app uses.
Let’s assume I build a canvas app called Event Onboarding that uses two entities Contact and Event in te Common Data Service. To share this app with other users, I need to (1) grant users access to te canvas app and (2) share te access to te two entities Contact and Event via security roles.
Te first part is not covered in this blog post. However, this article does an excellent job of laying out te step by step instructions that you can follow.
Te second part, sharing access to te data in te Common Data Service, is a trickier piece and not as straightforward today. When your users run your Event Onboarding app, they need permission to access te Contact and Event entities te app uses. To grant them access, you will need to:
1. Create a security role
2. Assign users to te security role
Create a security role
If you have previously created a security role that grants permissions to te entities Contact and Event that your app uses, then you can use that role and skip this step. Otherwise, follow te steps below to create a new security role.
Step 1: From PowerApps, click on te setting gear and select Admin Center.
Step 2: In PowerApps admin center, select te environment where you want to create te new security role.
Step 3: Select te Details tab and select te link Dynamics 365 Administration Center to manage te environment. Note, this step can takes a little long depends on te number of instances in your tenant.
Step 4: In te new tab for Dynamics 365 Administration Center, select te instance (te instance name is te same as te environment name) and click on Open
Step 5: In te header, click on te Settings and select Security
Step 6: Select Security roles
Step 7: Click on New, this will open te security role designer
Step 8: Enter a name for your security role
Step 9: Locate te entities your app uses Contact and Event by clicking on each tab in te security role designer. If your entities are custom, they will be under Custom Entities tab.
Step 10: Once you locate your entities, select te privileges you’d like to grant your users such as Read, Write, Delete etc. and te scope for performing that action. Scope determines how deep or high within te environments hierarchy te user can perform a particular action.
Step 11: Click Save and Close.
Great, you now have a new security role that define access to te entities your app uses. Next you will assign users to this role. If you’d like to learn more about security roles for Common Data Service or understand privileges and scope, you can visit this article.
Assign users to a security role
To assign a user to a security role, you need to be an Environment Admin and follow these steps:
Step 1: From PowerApps, select on te settings gear and select Admin Center.
Step 2: In PowerApps admin center, select te environment where you want to update a security role.
Step 3: Select Security tab
Step 4: First, you need to check if te user(s) already exists in te environment by selecting view te list of users in te environment. If te user is not in te list, go to step 5. Otherwise, you can skip to step 6.
Step 5: In case user doesn’t exist, you can add te user by entering te email address of te user in your organization, and select te Add user button.
Step 6: After you know te user(s) you want to assign a security role exists in your environment, select te Details tab and select te link Dynamics 365 Administration Center to manage te environment.
Step 7: In te new tab for Dynamics 365 Administration Center, select te instance (te instance name is te same as te environment name) and click on Open
Step 8: In te header, click on te Settings and select Security
Step 9: Select Users
Step 10: Locate te user(s) you want to share with using te search boks
Step 11: Select te user(s) and select Manage roles
Step 12: Select te role(s) you created in te previous section and make sure to also select *Common Data Service User* role (if it wasn’t already) Manager User Roles dialog. Common Data Service User role must be assigned to any user who wants to use your app or access te Common Data Service.
Step 13: Select OK to assign te role(s) to te user you selected.
Congratulations, you have now shared your canvas app with other users and grant them access to te entities Contact and Event that your canvas app uses. Let me know if you have any further question by dropping comments below.
Hvad er Power Apps?
Power Apps er en tjeneste til oprettelse og brug af brugerdefinerede virksomhedsapps, der opretter forbindelse til dine data og fungerer på tværs af nettet og mobil – uden at du skal bruge tid og penge på brugertilpasset softwareudvikling.
Application Lifecycle Management (ALM)
Power Platform Admin Center
Lad os komme i gang
Angiv din arbejds- eller skolekonto for at komme i gang.
Når du tilmelder dig, accepterer du servicebetingelserne.
Erklæring om beskyttelse af personlige oplysninger
Beskyttelse af personlige oplysninger og cookies
čeština dansk Deutsch (Österreich) Deutsch (Schweiz) Deutsch (Deutschland) Eλλnvιkά English (Australia) English (Canada) English (Cyprus) English (UK) English (Ireland) English (India) English (Malaysia) English (New Zealand) English (Singapore) English (US) English (South Africa) español (España) español (México) français (Belgique) français (Canada) français (Suisse) français (France) suomi magyar italiano (Svizzera) italiano (Italia) 日本語 한국어 norsk bokmål Nederlands (België) Nederlands (Nederland) polski português (Brasil) português (Portugal) pycckий svenska ไทย Türkçe 中文(简体) 中文(繁體) العربية עברית