Skip to content

Problem #14

Description

@itslearninggermany

I want to add a new License to a user:

newLicense := msgraph.AssignedLicense{
	SKUID:         &skui,
}

_, err = p.graphClient.Users().ID(*user.ID).AssignLicense(&msgraph.UserAssignLicenseRequestParameter{
	AddLicenses:    []msgraph.AssignedLicense{newLicense},
	RemoveLicenses: []msgraph.UUID{},
}).Request().Post(p.ctx)

I Get this response:
400 Bad Request: {"error":{"code":"Request_BadRequest","message":"Cannot convert a primitive value to the expected type 'Edm.Guid'. See the inner exception for more details.","innerError":{"date":"2020-04-16T22:07:51","request-id":"7d9ce15b-053c-47da-9bc7-c19eb0335462"}}}

what I am doing wrong?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions