liveBook · Manning

Group managed service account

As explained in 100 SQL Server Mistakes and How to Avoid Them

A group managed service account is a Windows-managed service identity that provides automatic password management and restricted noninteractive use.

A group managed service account (gMSA) is a Windows-managed identity for services. It provides automatic password rotation, simplified service principal name management, highly complex passwords stored in Active Directory, and noninteractive use. section 14.3

Mistake 1: choosing one service account for too much of the SQL Server estate.

  • A coarse-grain strategy may appear easier to coordinate, but compromising one account can expose every instance and feature it manages. section 14.3
  • Password rotation commonly fails when many applications depend on the same traditional account, leaving a long-lived credential in place. section 14.3
  • Use gMSAs instead: they support broader account grouping without exposing the organization to the same increased security risk. section 14.3

A safer SQL Server arrangement

An organization can begin by segregating gMSAs by ecosystem and business division rather than assigning one traditional service account across its entire SQL Server estate. An Active Directory administrator creates the gMSA, then an authorization script runs on the SQL Server host so that server can use it. section 14.3

Because gMSA passwords are never exposed to administrators and the accounts cannot be used interactively, they are the preferred replacement for traditional SQL Server service accounts. section 14.3 section 14.8

How 100 SQL Server Mistakes and How to Avoid Them covers it

How deep it goes
Explains security properties, account-granularity tradeoffs, and authorization workflow without providing script syntax or implementation internals.
Examples
Uses a SQL Server estate grouped by ecosystem and business division, with host authorization performed after Active Directory creation.
What it assumes
Assumes access to an Active Directory administrator and a server hosting SQL Server; teaches the account rationale from basic service-account risks.
What you can do after
Operate/configure SQL Server services with gMSAs instead of traditional service accounts and authorize hosts through a deployment script.
How it connects
Connects Active Directory, service principal names, password rotation, service accounts, and SQL Server security.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of 100 SQL Server Mistakes and How to Avoid Them. The section links point to the parts of the book it draws on.