Skip to content

TenantProperties: AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled #1591

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

Conversation

czullu
Copy link

@czullu czullu commented Dec 11, 2024

Add support to get/set AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled

Tested as below

using var pnpContextAdminCenter = await pnpContext.GetSharePointAdmin().GetTenantAdminCenterContextAsync();
var tenantProperties = await pnpContextAdminCenter.GetSharePointAdmin().GetTenantPropertiesAsync();
tenantProperties.AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled=true;
await tenantProperties.UpdateAsync();

@jansenbe jansenbe self-assigned this Dec 13, 2024
@jansenbe jansenbe added the area:admin 📜 Admin library related label Dec 13, 2024
jansenbe pushed a commit that referenced this pull request Dec 13, 2024
@jansenbe jansenbe merged commit 925f0b7 into pnp:dev Dec 13, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:admin 📜 Admin library related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants