Skip to content

Copy-DbaLogin - Add -ExcludeDatabaseMapping to sync only server permissions#10305

Merged
potatoqualitee merged 1 commit intodevelopmentfrom
claude/issue-8312-20260403-1515
Apr 4, 2026
Merged

Copy-DbaLogin - Add -ExcludeDatabaseMapping to sync only server permissions#10305
potatoqualitee merged 1 commit intodevelopmentfrom
claude/issue-8312-20260403-1515

Conversation

@andreasjordan
Copy link
Copy Markdown
Collaborator

Adds a new -ExcludeDatabaseMapping switch to Copy-DbaLogin that syncs only server-level roles and securables, skipping the database mapping loop.

This addresses the performance concern for instances with many databases where full permission sync is slow but -ExcludePermissionSync discards desired server-level permissions.

Fixes #8312

Generated with Claude Code

…ssions

Adds a new -ExcludeDatabaseMapping switch to Copy-DbaLogin that syncs
only server-level roles and securables, skipping the database mapping
loop. This addresses the performance concern for instances with many
databases where full permission sync is slow but -ExcludePermissionSync
discards desired server-level permissions.

Fixes #8312

(do Copy-DbaLogin)

Co-authored-by: Andreas Jordan <andreasjordan@users.noreply.github.com>
@potatoqualitee potatoqualitee merged commit 092a092 into development Apr 4, 2026
15 checks passed
@potatoqualitee potatoqualitee deleted the claude/issue-8312-20260403-1515 branch April 4, 2026 21:06
@potatoqualitee
Copy link
Copy Markdown
Member

nice and straightforward

potatoqualitee added a commit that referenced this pull request Apr 10, 2026
…w of #10305)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

Copy-DbaLogin Permissions sync only Server Roles and Server securables

2 participants