diff --git a/pkg/connector/connector.go b/pkg/connector/connector.go index c6c009a3..39814236 100644 --- a/pkg/connector/connector.go +++ b/pkg/connector/connector.go @@ -24,6 +24,7 @@ var ( Traits: []v2.ResourceType_Trait{ v2.ResourceType_TRAIT_USER, }, + Annotations: annotationsForUserResourceType(), } resourceTypeWorkspace = &v2.ResourceType{ Id: "workspace", diff --git a/pkg/connector/helpers.go b/pkg/connector/helpers.go index 838905f0..716c2954 100644 --- a/pkg/connector/helpers.go +++ b/pkg/connector/helpers.go @@ -2,6 +2,7 @@ package connector import ( v2 "github.com/conductorone/baton-sdk/pb/c1/connector/v2" + "github.com/conductorone/baton-sdk/pkg/annotations" "github.com/conductorone/baton-sdk/pkg/pagination" ) @@ -21,3 +22,9 @@ func parsePageToken(i string, resourceID *v2.ResourceId) (*pagination.Bag, error return b, nil } + +func annotationsForUserResourceType() annotations.Annotations { + annos := annotations.Annotations{} + annos.Update(&v2.SkipEntitlementsAndGrants{}) + return annos +}