Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion baton_capabilities.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@
{
"@type": "type.googleapis.com/c1.connector.v2.V1Identifier",
"id": "invitation"
},
{
"@type": "type.googleapis.com/c1.connector.v2.SkipSyncAnomalyDetection"
}
]
},
Expand All @@ -74,7 +77,8 @@
"CAPABILITY_ACCOUNT_PROVISIONING",
"CAPABILITY_RESOURCE_DELETE"
],
"permissions": {}
"permissions": {},
"skipSyncAnomalyDetection": true
},
{
"resourceType": {
Expand Down
4 changes: 3 additions & 1 deletion pkg/connector/connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ var (
Traits: []v2.ResourceType_Trait{
v2.ResourceType_TRAIT_USER,
},
Annotations: v1AnnotationsForResourceType("invitation"),
// Invitations disappear once accepted, so their count can legitimately
// drop between syncs. Skip sync anomaly detection for this type only.
Annotations: append(v1AnnotationsForResourceType("invitation"), annotations.New(&v2.SkipSyncAnomalyDetection{})...),
}
resourceTypeApiToken = &v2.ResourceType{
Id: "api-key",
Expand Down
Loading