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

Fixing issue apply TenantTemplate creating a new Team in an application context #981

Merged

Conversation

KoenZomers
Copy link
Contributor

When using Invoke-PnPTenantTemplate to create a new Team when using an application context using a clientId and certificate, the group would be created first, then teamified and then permissions would be added on the group for the owners and members. This would fail in an application context as teamifying a group requires an owner to be present first, which is not allowed to be the service principal, before doing so. In this PR we move the part of setting the owners and members from after group creation and teamification to after group creation but before teamification. This fixes this issue. Works well for both delegated as well as application contexts now.

@gautamdsheth gautamdsheth merged commit 72ca866 into pnp:dev Feb 8, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants