Skip to content

Commit

Permalink
add odatatype
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Blaschke <[email protected]>
  • Loading branch information
mblaschke committed May 27, 2024
1 parent 5c2fab5 commit 4acd33d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions msgraphsdk/msgraphclient/lookup.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
type (
DirectoryObject struct {
// general
OdataType string
Type string
DisplayName string
ObjectID string
Expand Down Expand Up @@ -73,6 +74,7 @@ func (c *MsGraphClient) LookupPrincipalID(ctx context.Context, princpalIds ...st
for _, row := range result.GetValue() {
objectInfo := &DirectoryObject{
ObjectID: to.String(row.GetId()),
OdataType: to.String(row.GetOdataType())
Type: "unknown",
}

Expand Down

0 comments on commit 4acd33d

Please sign in to comment.