Actors and Targets

Actors

An actor is represented in the actor parameter within the audit log object and defines the type of actor that triggered the audit log event and its associated details.

User

{ 
  "actorType": "user", 
  "actorAccountId": number, 
  "actorUserId": number, 
  "actorEmail": string,
  "actorClient": string,
  "actorIsExternal": boolean
}

Token

{ 
  "actorType": "token",
  "actorAccountId": number, 
  "actorIsExternal": boolean
}

Internal

{ 
  "actorType": "internal",
}

Anonymous

{ 
  "actorType": "anonymous",
}

Unknown

{ 
  "actorType": "unknown",
}

Targets

Targets are represented in the targets parameter within the audit log object and defines the target(s) of the audit log event and its associated details. For example, UserCreatedOnAccount event will have a UserTarget for the newly created user.

Note: some events may have multiple targets, while other events may have no targets.

User

{ 
  "targetType": "userTarget", 
  "targetId": number, 
  "displayName": string, 
  "userEmail": string, 
  "isExternal": boolean
}

Document

{ 
  "targetType": "documentTarget", 
  "targetId": string, 
  "documentName": string,
}

Folder

{ 
  "targetType": "folderTarget", 
  "targetId": string, 
  "folderName": string 
}

Group

{ 
  "targetType": "groupTarget", 
  "targetId": string, 
  "groupName": string 
}

Unknown

{ 
  "targetType": "unknown", 
}