Table of Contents

Class AuditMetadataKeys

Namespace
Tharga.Team.Service.Audit
Assembly
Tharga.Team.Service.dll

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

string

AccessRequestDuration

The duration asked for, as d.hh:mm:ss, or none for no end.

public const string AccessRequestDuration = "accessrequest.duration"

Field Value

string

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

string

AccessRequestId

The access request an operation acted on.

public const string AccessRequestId = "accessrequest.id"

Field Value

string

AccessRequestRequesterKey

Who made the access request (user key).

public const string AccessRequestRequesterKey = "accessrequest.requester.key"

Field Value

string

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

string

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

string

ConsentAccessLevelNew

Consented access level after a change. Absent value means consent was cleared.

public const string ConsentAccessLevelNew = "consent.accesslevel.new"

Field Value

string

ConsentAccessLevelOld

Consented access level before a change. Absent value means "no consent".

public const string ConsentAccessLevelOld = "consent.accesslevel.old"

Field Value

string

ConsentRoles

Roles the team consented to, comma-separated.

public const string ConsentRoles = "consent.roles"

Field Value

string

CustomRoleNames

Custom (runtime-defined) tenant role names, comma-separated.

public const string CustomRoleNames = "customroles.names"

Field Value

string

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

string

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

string

DirectoryError

Why a requested directory operation did not complete.

public const string DirectoryError = "directory.error"

Field Value

string

DirectoryStatus

Directory verification outcome (Found / NotFound / Disabled / NotLinked).

public const string DirectoryStatus = "directory.status"

Field Value

string

DirectoryUpdated

Whether a rename also wrote the name to the directory.

public const string DirectoryUpdated = "directory.updated"

Field Value

string

IconAllowAdminUpload

Whether administrators may upload icons for users, as stored by a site icon-settings change.

public const string IconAllowAdminUpload = "iconsettings.allowadminupload"

Field Value

string

IconAllowUserUpload

Whether users may upload their own icon, as stored by a site icon-settings change.

public const string IconAllowUserUpload = "iconsettings.allowuserupload"

Field Value

string

IconContentType

Icon content type, on a team-icon set.

public const string IconContentType = "icon.contenttype"

Field Value

string

IconDefaultUserIconUrl

The default user icon URL stored by a site icon-settings change.

public const string IconDefaultUserIconUrl = "iconsettings.defaultusericonurl"

Field Value

string

IconGravatarEnabled

Whether the Gravatar fallback is on, as stored by a site icon-settings change.

public const string IconGravatarEnabled = "iconsettings.gravatar.enabled"

Field Value

string

IconGravatarStyle

The Gravatar style stored by a site icon-settings change.

public const string IconGravatarStyle = "iconsettings.gravatar.style"

Field Value

string

IconSize

Icon size in bytes, on a team-icon set.

public const string IconSize = "icon.size"

Field Value

string

MemberAccessLevelNew

Member access level after a change.

public const string MemberAccessLevelNew = "member.accesslevel.new"

Field Value

string

MemberAccessLevelOld

Member access level before a change.

public const string MemberAccessLevelOld = "member.accesslevel.old"

Field Value

string

MemberEmail

Email a member was invited with.

public const string MemberEmail = "member.email"

Field Value

string

MemberKey

Member the operation acted on.

public const string MemberKey = "member.key"

Field Value

string

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

string

MemberNameOld

Per-team member display name before a change. Empty string means "no override".

public const string MemberNameOld = "member.name.old"

Field Value

string

MemberScopeOverrides

Per-member scope overrides, comma-separated.

public const string MemberScopeOverrides = "member.scopeoverrides"

Field Value

string

MemberTeamCount

Number of teams a user was removed from, on a remove-from-all-teams operation.

public const string MemberTeamCount = "member.teamcount"

Field Value

string

MemberTenantRoles

Tenant roles assigned to a member, comma-separated.

public const string MemberTenantRoles = "member.tenantroles"

Field Value

string

NewOwnerKey

New owner on an ownership transfer.

public const string NewOwnerKey = "team.newowner.key"

Field Value

string

TeamName

Team display name, on create.

public const string TeamName = "team.name"

Field Value

string

TeamNameNew

Team name after a rename.

public const string TeamNameNew = "team.name.new"

Field Value

string

TeamNameOld

Team name before a rename.

public const string TeamNameOld = "team.name.old"

Field Value

string

UserEmailNew

The email address an administrator set on a user.

public const string UserEmailNew = "user.email.new"

Field Value

string

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

string

UserKey

User the operation acted on (cross-team user administration).

public const string UserKey = "user.key"

Field Value

string

UserNameNew

The display name a user was renamed to, on an administrative rename.

public const string UserNameNew = "user.name.new"

Field Value

string

VerifiedCount

Number of users processed by a bulk verification.

public const string VerifiedCount = "verify.count"

Field Value

string