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

Web extension DisableRequestAccess not working #1015

Closed
luismanez opened this issue Apr 25, 2024 · 0 comments · Fixed by #1016
Closed

Web extension DisableRequestAccess not working #1015

luismanez opened this issue Apr 25, 2024 · 0 comments · Fixed by #1016

Comments

@luismanez
Copy link

I want to disable "Allow Access requests" in Site sharing settings. I mean this in the UI:
image

There is a Web extension that should do the job (and worked in the past) but is not working now. This is the current code:

        public static void DisableRequestAccess(this Web web)
        {
            web.RequestAccessEmail = string.Empty;
            web.Update();
            web.Context.ExecuteQueryRetry();
        }

As per my tests now is not enough with setting an Empty email and an extra step is required.

I'm about to do a PR to fix it, but openning an issue first for traceability.

luismanez pushed a commit to luismanez/pnpframework that referenced this issue Apr 25, 2024
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 a pull request may close this issue.

1 participant