Skip to content

Commit

Permalink
fix: ListUsers readme typos (#106)
Browse files Browse the repository at this point in the history
Fixing typos for ListUsers examples
  • Loading branch information
willvedd authored Jun 7, 2024
1 parent 0b68a06 commit 47a15e1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions example/example1/example1.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ package main
import (
"context"
"fmt"
"os"

openfga "github.com/openfga/go-sdk"
"github.com/openfga/go-sdk/client"
"github.com/openfga/go-sdk/credentials"
"os"
)

func mainInner() error {
Expand Down Expand Up @@ -265,11 +266,11 @@ func mainInner() error {
fmt.Println("Listing user who have access to object")
listUsersResponse, err := fgaClient.ListUsers(ctx).Body(client.ClientListUsersRequest{
Relation: "viewer",
Object: openfga.Object{
Object: openfga.FgaObject{
Type: "document",
Id: "roadmap",
},
UserFilters: []openfga.ListUsersFilter{{
UserFilters: []openfga.UserTypeFilter{{
Type: "user",
}},
}).Execute()
Expand Down

0 comments on commit 47a15e1

Please sign in to comment.