dsccommunity / dsccommunity/SharePointDsc

Least-privileged security model enabled after Oct 22 CU

Open
#1,434 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
246
Forks
106
PR merge metrics
No merged PRs in 30d

Description

Problem description

After October 2022 CU we should run the following command after farm is created because the least-privileged model is automatically enabled. If this is not done then deleting web application in CA will fail to access denied error at least for setup account.

Get-SPDatabase | %{$_.GrantOwnerAccessToDatabaseAccount()}

https://support.microsoft.com/en-us/topic/-sorry-something-went-wrong-error-when-you-delete-a-web-application-kb5031287-e1f3e2b7-6176-4e37-ab3b-606a9e456ffa

https://learn.microsoft.com/en-us/sharepoint/security-for-sharepoint-server/plan-for-least-privileged-administration#additional-things-to-consider-for-a-least-privileged-environment

Verbose logs
-
DSC configuration
-
Suggested solution

Could we add this command maybe to the SPFarm resource as a last part after farm is created

SharePoint version and build
SPSE October 2023 CU
Operating system the target node is running
-
PowerShell version and build the target node is running
-
SharePointDsc version
5.4

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the SPFarm resource and the point where farm creation completes. Review the linked Microsoft guidance and determine how the requested Get-SPDatabase command fits into that lifecycle. Done means the command is handled after farm creation and the reported access-denied behavior can be checked against the October 2022 CU scenario.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
devops, infrastructure
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.