Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CoE Starter Kit - QUESTION] CoE Sync Flow Fails While Assigning System Administrator Role to Power Platform Admin #9569

Open
1 task done
Krisoo7 opened this issue Feb 3, 2025 · 9 comments
Assignees
Labels
coe-starter-kit CoE Starter Kit issues question Further information is requested

Comments

@Krisoo7
Copy link

Krisoo7 commented Feb 3, 2025

Does this question already exist in our backlog?

  • I have checked and confirm this is a new question.

What is your question?

We are getting error stating Sync Flows in the CoE Starter Kit have failed. Upon checking the run history (for the specified flow), we found that it is trying to add our Power Platform admin account as system administrator to Teams environments. We are getting this error for all the Teams environments. As per Microsoft, Power Platform admin is automatically added as system administrator. Could you please help us on how to fix these errors?

What solution are you experiencing the issue with?

Core

What solution version are you using?

4.43

What app or flow are you having the issue with?

HELPER - Driver Escalation Check

What method are you using to get inventory and telemetry?

None

@Krisoo7 Krisoo7 added coe-starter-kit CoE Starter Kit issues question Further information is requested labels Feb 3, 2025
@pbattini pbattini changed the title [CoE Starter Kit - QUESTION] QUESTION [CoE Starter Kit - QUESTION] CoE Sync Flow Fails While Assigning System Administrator Role to Power Platform Admin Feb 3, 2025
@pbattini pbattini self-assigned this Feb 4, 2025
@pbattini
Copy link
Collaborator

pbattini commented Feb 4, 2025

@Krisoo7 Can you please share the error log from a failed flow action? This will help us better understand the issue.

@Krisoo7
Copy link
Author

Krisoo7 commented Feb 4, 2025

@pbattini I am not able to attach the error screenshot here. Can you please guide to do the same ?

@Krisoo7
Copy link
Author

Krisoo7 commented Feb 4, 2025 via email

@Krisoo7
Copy link
Author

Krisoo7 commented Feb 5, 2025

@pbattini Let me know if you need any further details.
 {
"errors": [
{
"Subject": "Result",
"Description": "User 0c3a27ca-5c8a-4cc2-a0e7-ef151864f21d is not part of security group cfb3b8e2-b982-4ab5-a919-ca2b0b8ca49e",
"Code": "userNotPartOfSecurityGroup"
},
{
"Subject": "InnerException",
"Description": null,
"Code": null
},
{
"Subject": "AdditionalData",
"Description": null,
"Code": null
}
],
"information": [
{
"Subject": "Result",
"Description": "["SyncMode: Default","Instance 09923ac6-8c37-ee11-8475-002248282d39 exists","Instance 09923ac6-8c37-ee11-8475-002248282d39 in enabled state","Instance Url found https://org34744879.crm.dynamics.com","User found in AD tenant","User in enabled state in AD tenant","User 0c3a27ca-5c8a-4cc2-a0e7-ef151864f21d is not part of security group cfb3b8e2-b982-4ab5-a919-ca2b0b8ca49e"]",
"Code": "userNotPartOfSecurityGroup"
},
{
"Subject": "AdditionalResultDetails",
"Description": "",
"Code": null
},
{
"Subject": "RequestId",
"Description": "e33b1410-85d4-4383-8161-d69f839270cd",
"Code": null
},
{
"Subject": "CorrelationId",
"Description": "2223d7f0-2ffa-4379-9afd-485cbc73ff75",
"Code": null
},
{
"Subject": "SystemUserId",
"Description": null,
"Code": null
},
{
"Subject": "SecurityGroupId",
"Description": "cfb3b8e2-b982-4ab5-a919-ca2b0b8ca49e",
"Code": null
},
{
"Subject": "Timestamp",
"Description": "2/3/2025 4:03:10 AM",
"Code": null
}
]
}

@pbattini
Copy link
Collaborator

pbattini commented Feb 6, 2025

@Krisoo7 : Thanks for the details. Based on the error log you shared : "User 0c3a27ca-5c8a-4cc2-a0e7-ef151864f21d is not part of security group cfb3b8e2-b982-4ab5-a919-ca2b0b8ca49e", I see that the issue is that the user being added to the environment is not part of the environment’s 'Security Group'.

Please refer to the following screenshot on how to find the environment’s security group from Power Platform Admin Center.

Image

@Krisoo7
Copy link
Author

Krisoo7 commented Feb 6, 2025

@pbattini The action is being performed for all the Teams environments in the tenant and hence, getting same error for all of them. Teams' environment security group is tied to Microsoft 365 group and as a admin we don't have control over it.
Also, as per Microsoft, Power Platform Admin (the user has the same role) is automatically added as System Administrator to Teams environment. Could you please suggest further ?

@SSSTREDDD
Copy link

Likely related to: #9270

@pbattini
Copy link
Collaborator

pbattini commented Feb 7, 2025

@Krisoo7 Please check this Manage admin roles . Microsoft no longer automatically assigns the System Administrator role to users with global or service level admin roles such as Power Platform Administrator and Dynamics 365 Administrator.

Also please refer: #9270 on 'Direct' membership.

@Krisoo7
Copy link
Author

Krisoo7 commented Feb 7, 2025

@pbattini "Manage admin role" this is not applicable here. User already have the Power Platform admin role assigned but via group membership.
Does this mean that the account who install and own the product should have directly assigned Power Platform admin role rather than assigned via group membership for the flow to work?
If not, then we will get the error? Could you please confirm?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
coe-starter-kit CoE Starter Kit issues question Further information is requested
Projects
Status: No status
Development

No branches or pull requests

3 participants