Skip to content

Commit

Permalink
add user annos
Browse files Browse the repository at this point in the history
  • Loading branch information
jakcinmarina committed Aug 21, 2023
1 parent b3f3f0c commit 2adfd34
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/connector/connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ var (
Traits: []v2.ResourceType_Trait{
v2.ResourceType_TRAIT_USER,
},
Annotations: annotationsForUserResourceType(),
}
resourceTypeWorkspace = &v2.ResourceType{
Id: "workspace",
Expand Down
7 changes: 7 additions & 0 deletions pkg/connector/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand All @@ -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
}

0 comments on commit 2adfd34

Please sign in to comment.