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
AccessRequestAccessLevel
The access level asked for.
public const string AccessRequestAccessLevel = "accessrequest.accesslevel"
Field Value
AccessRequestDuration
The duration asked for, as d.hh:mm:ss, or none for no end.
public const string AccessRequestDuration = "accessrequest.duration"
Field Value
AccessRequestGrantedUntil
On approval, when the granted consent ends (ISO 8601 UTC), or none when it is standing.
public const string AccessRequestGrantedUntil = "accessrequest.granteduntil"
Field Value
AccessRequestId
The access request an operation acted on.
public const string AccessRequestId = "accessrequest.id"
Field Value
AccessRequestRequesterKey
Who made the access request (user key).
public const string AccessRequestRequesterKey = "accessrequest.requester.key"
Field Value
AuthorizedVia
How a team-bound call was authorized, written only when it was not by the caller's own team scope.
public const string AuthorizedVia = "authorization.via"
Field Value
AuthorizedViaSystemGrant
The AuthorizedVia value for a team-bound call admitted by a system grant of the scope.
public const string AuthorizedViaSystemGrant = "system-grant"
Field Value
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
DirectoryUpdated
Whether a rename also wrote the name to the directory.
public const string DirectoryUpdated = "directory.updated"
Field Value
IconAllowAdminUpload
Whether administrators may upload icons for users, as stored by a site icon-settings change.
public const string IconAllowAdminUpload = "iconsettings.allowadminupload"
Field Value
IconAllowUserUpload
Whether users may upload their own icon, as stored by a site icon-settings change.
public const string IconAllowUserUpload = "iconsettings.allowuserupload"
Field Value
IconContentType
Icon content type, on a team-icon set.
public const string IconContentType = "icon.contenttype"
Field Value
IconDefaultUserIconUrl
The default user icon URL stored by a site icon-settings change.
public const string IconDefaultUserIconUrl = "iconsettings.defaultusericonurl"
Field Value
IconGravatarEnabled
Whether the Gravatar fallback is on, as stored by a site icon-settings change.
public const string IconGravatarEnabled = "iconsettings.gravatar.enabled"
Field Value
IconGravatarStyle
The Gravatar style stored by a site icon-settings change.
public const string IconGravatarStyle = "iconsettings.gravatar.style"
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
UserEmailNew
The email address an administrator set on a user.
public const string UserEmailNew = "user.email.new"
Field Value
UserEmailOld
The email address a user held before an administrator set another; absent when they held none.
public const string UserEmailOld = "user.email.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"