cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
SamPo
Level 10

Dynamics management of CDS

Hi,

 

I have created several apps and entities with the CDS and shared with a small group of users.

I needed to use the trigger in flow of 'when an item is created' and the flow failed saying I had not enabled 'change tracking' for this entity in Dynamics 365.

We do not use Dynamics 365 in our organization and I'm not familiar with it but our IT team set my user in Dynamics to 'Administrative' so I could edit the entity and turn on 'change tracking'.

Ever since IT made this change to the admin user, it seems now all permissions for CDS are managed by dynamics. I have users who could previously use apps with CDS but now they get an error when writing to the CDS because no role has been assigned to them in Dynamics.

How do I stop dynamics managing the permissions and go back to how it was before I made this change?

 

Thanks,

Sam

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Dynamics management of CDS

Hi @SamPo,

 

Your IT team has assigned a Administrator permission to the users (who you share your app with) within Dynamics 365 rather than Common Data Service (CDS).

 

If you have assigned a new role to the users, please check if the role has permission to your CDS entity.

 

In addition, if you want to set a default role for users that has access to your app, I afraid that there is no way to achieve your needs in PowerApps currently.

 

If you would like this feature to be added in PowerApps, please submit an idea to PowerApps Ideas Forum:

https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas

 

More details about the predefined security roles in PowerApps environment, please check the following article:

https://docs.microsoft.com/en-us/powerapps/administrator/database-security

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Community Support Team
Community Support Team

Re: Dynamics management of CDS

Hi @SamPo,

 

Could you please share a bit more about your scenario?

Could you please show more details about the error message within your app?

Further, do you create an app based on the Entity within the new version of Common Data Service?

 

I don't think the Dynamics 365 are managing all permissions for CDS within your PowerApps. In addition, I suppose that you are using the new version of Common Data Service within your PowerApps, is it true?

 

If you created an app based on Common Data Service (CDS 2.0, new version), when you share this app with other users within your Organization, you must make sure that the users who will run it have the appropriate permissions for the entity or entities on which the app relies.

 

More details about managing entity permission within PowerApps, please check the following article:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/share-app#manage-entity-permissions

 

Please consider take a try to create a security role with appropriate permissions for the Enity on which your app relies, and then assign this role to the users who you want to share your app with, then check if the other users has access to this shared app.

 

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
SamPo
Level 10

Re: Dynamics management of CDS

Hi,

 

Yes, I'm only using the new version of CDS.

 

In my scenario I have an app which writes to an entity in the CDS

I shared this App with a specific user and this user was able to use the app and perform commands that require writing to the CDS.

After my user was assigned as Admin by IT (so I could turn on change tracking) the same user now gets the following error:

 image.png

This user does not have any roles assinged to them and assuming the simple solution is to assign one. But my point here is that I did not have to previoulsy do this and this user was able to use the app with the CDS commands. Were they somehow previously assigned a basic role and when I was set to admin it was removed?

If users need to be assigned roles in this manner, is there a way I can set a default role for users that have access to the application?

 

Thanks,

Sam

Community Support Team
Community Support Team

Re: Dynamics management of CDS

Hi @SamPo,

 

Your IT team has assigned a Administrator permission to the users (who you share your app with) within Dynamics 365 rather than Common Data Service (CDS).

 

If you have assigned a new role to the users, please check if the role has permission to your CDS entity.

 

In addition, if you want to set a default role for users that has access to your app, I afraid that there is no way to achieve your needs in PowerApps currently.

 

If you would like this feature to be added in PowerApps, please submit an idea to PowerApps Ideas Forum:

https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas

 

More details about the predefined security roles in PowerApps environment, please check the following article:

https://docs.microsoft.com/en-us/powerapps/administrator/database-security

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (3,714)