Files
2026-10-03 09:44:29 +00:00

12 lines
331 B
Python

"""Account names excluded from human user administration."""
def account_name(user: str) -> str:
account = user.strip().rsplit("\\", 1)[-1]
return account.split("@", 1)[0]
def is_excluded_user(user: str) -> bool:
account = account_name(user).casefold()
return account == "krbtgt" or account.startswith("msol_")