This is expected behavior with the current Project Accelerator architecture.
When a Planner plan is created and associated with a Microsoft Teams group, Project Accelerator creates (or reuses) the corresponding Microsoft Entra ID group team in Dataverse and automatically assigns the managed Project Team Member security role. This is required so team members can access the Dataverse records needed for Project Accelerator features.
A few thoughts that may help:
- The managed Project Team Member role should not be modified or removed. Since it's part of the managed solution, any updates or reprovisioning can reapply it, which is the behavior you're seeing.
- There isn't a supported setting to disable this automatic role assignment. The Planner integration relies on the Dataverse team and its associated security role to function correctly.
- Controlling app access separately from data access is generally the recommended approach. If users need Planner functionality but shouldn't use the Project Accelerator app, consider limiting app visibility using app sharing and security role assignments rather than trying to prevent the Dataverse team from receiving its managed role.
- If appropriate for your scenario, you could also create a custom model-driven app that exposes only the required Planner/Project tables for specific users, while reserving the full Project Accelerator app for Project Managers and administrators.
One question that would help identify the best approach:
- When you say users "must not access the Project Accelerator app," do you mean:
- They should not even see the app tile in the app launcher?
- They can open the app but should have read-only or limited functionality?
- Or they should only work in Microsoft Planner/Teams and never interact with the Project Accelerator model-driven app?
The answer will determine whether this is primarily an app access problem or a Dataverse security problem, as those are managed independently.