Skip to content

Commit 7a9df5e

Browse files
Merge pull request #35995 from shohamMSFT/docs-editor/create-a-login-1764807826
Doc update on implicit login creation for Windows groups
2 parents e2fe81f + c4b93cc commit 7a9df5e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/relational-databases/security/authentication-access/create-a-login.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,13 @@ The login can connect to [!INCLUDE [ssNoVersion](../../../includes/ssnoversion-m
297297

298298
- To grant a permission to a login, see [Grant a Permission to a Principal](grant-a-permission-to-a-principal.md).
299299

300+
> [!NOTE]
301+
> When you connect to SQL Server through a Windows or Active Directory (AD) group, certain operations can create an implicit login for your group membership without executing a CREATE LOGIN statement. This implicit login creation maintains referential integrity of system metadata within SQL Server. The implicit login doesn't have explicit connect permission to the database, so if you're removed from the group, that login can't connect by itself.
302+
>
303+
> You might observe implicit logins created automatically when you perform certain operations as a member of a Windows group, such as executing `sp_defaultdb` or `sp_defaultlanguage`.
304+
>
305+
> This behavior is by design and isn't planned to change. If you need additional monitoring, you can implement triggers to detect login creation attempts.
306+
300307
## Related content
301308

302309
- [Security for SQL Server Database Engine and Azure SQL Database](../security-center-for-sql-server-database-engine-and-azure-sql-database.md)

0 commit comments

Comments
 (0)