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

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

IconContentType

Icon content type, on a team-icon set.

public const string IconContentType = "icon.contenttype"

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

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