Skip to content

Commit

Permalink
GraphClient: CreateUser: change parameter from pointer to non-pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
TerraTalpi committed Aug 19, 2021
1 parent 27779ba commit f91348a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GraphClient.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ func (g *GraphClient) GetGroup(groupID string, opts ...GetQueryOption) (Group, e

// CreateUser creates a new user given a user object and returns and updated object
// Reference: https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/user-post-users
func (g *GraphClient) CreateUser(userInput *User, opts ...CreateQueryOption) (User, error) {
func (g *GraphClient) CreateUser(userInput User, opts ...CreateQueryOption) (User, error) {
user := User{graphClient: g}
bodyBytes, err := json.Marshal(userInput)
if err != nil {
Expand Down

0 comments on commit f91348a

Please sign in to comment.