Class AuditMetadataKeys
Metadata keys the toolkit writes onto Metadata.
public static class AuditMetadataKeys
- Inheritance
-
AuditMetadataKeys
- Inherited Members
Remarks
Named rather than inlined so the vocabulary stays consistent across decorators and so a consumer can filter or display on a stable key. Values are dotted and lower-case; a change here is a change to the audit record's shape, so treat these as part of the public contract.
A .old / .new pair is written only where the previous value is needed to interpret the
entry (rename, consent level, member access level, member display name). Operations whose identity is
the whole story — invite, remove — record the subject only, so they cost no extra read.
Fields
ConsentAccessLevelNew
Consented access level after a change. Absent value means consent was cleared.
public const string ConsentAccessLevelNew = "consent.accesslevel.new"
Field Value
ConsentAccessLevelOld
Consented access level before a change. Absent value means "no consent".
public const string ConsentAccessLevelOld = "consent.accesslevel.old"
Field Value
ConsentRoles
Roles the team consented to, comma-separated.
public const string ConsentRoles = "consent.roles"
Field Value
CustomRoleNames
Custom (runtime-defined) tenant role names, comma-separated.
public const string CustomRoleNames = "customroles.names"
Field Value
DemotedOwnerKeys
Owners demoted to Administrator by a set-owner, comma-separated. Empty is never recorded — an operation that changed nothing writes no entry at all.
public const string DemotedOwnerKeys = "team.demotedowners.keys"
Field Value
Remarks
Plural on purpose. A team synced from a system permitting several owners is reduced to one in a single operation, so "who lost ownership" is a list rather than a value, and recording only the first would understate what happened.
DirectoryDeleted
Whether a user delete also deleted the directory user.
public const string DirectoryDeleted = "directory.deleted"
Field Value
DirectoryError
Why a requested directory operation did not complete.
public const string DirectoryError = "directory.error"
Field Value
DirectoryStatus
Directory verification outcome (Found / NotFound / Disabled / NotLinked).
public const string DirectoryStatus = "directory.status"
Field Value
IconContentType
Icon content type, on a team-icon set.
public const string IconContentType = "icon.contenttype"
Field Value
IconSize
Icon size in bytes, on a team-icon set.
public const string IconSize = "icon.size"
Field Value
MemberAccessLevelNew
Member access level after a change.
public const string MemberAccessLevelNew = "member.accesslevel.new"
Field Value
MemberAccessLevelOld
Member access level before a change.
public const string MemberAccessLevelOld = "member.accesslevel.old"
Field Value
MemberEmail
Email a member was invited with.
public const string MemberEmail = "member.email"
Field Value
MemberKey
Member the operation acted on.
public const string MemberKey = "member.key"
Field Value
MemberNameNew
Per-team member display name after a change. Empty string means the override was cleared.
public const string MemberNameNew = "member.name.new"
Field Value
MemberNameOld
Per-team member display name before a change. Empty string means "no override".
public const string MemberNameOld = "member.name.old"
Field Value
MemberScopeOverrides
Per-member scope overrides, comma-separated.
public const string MemberScopeOverrides = "member.scopeoverrides"
Field Value
MemberTeamCount
Number of teams a user was removed from, on a remove-from-all-teams operation.
public const string MemberTeamCount = "member.teamcount"
Field Value
MemberTenantRoles
Tenant roles assigned to a member, comma-separated.
public const string MemberTenantRoles = "member.tenantroles"
Field Value
NewOwnerKey
New owner on an ownership transfer.
public const string NewOwnerKey = "team.newowner.key"
Field Value
TeamName
Team display name, on create.
public const string TeamName = "team.name"
Field Value
TeamNameNew
Team name after a rename.
public const string TeamNameNew = "team.name.new"
Field Value
TeamNameOld
Team name before a rename.
public const string TeamNameOld = "team.name.old"
Field Value
UserKey
User the operation acted on (cross-team user administration).
public const string UserKey = "user.key"
Field Value
UserNameNew
The display name a user was renamed to, on an administrative rename.
public const string UserNameNew = "user.name.new"
Field Value
VerifiedCount
Number of users processed by a bulk verification.
public const string VerifiedCount = "verify.count"