[GH-ISSUE #682] BUG: "Success" casting error on applying P2 license to user #353

Closed
opened 2026-03-02 12:41:34 +03:00 by kerem · 1 comment
Owner

Originally created by @SuburbanTotoro on GitHub (Jan 27, 2022).
Original GitHub issue: https://github.com/KelvinTegelaar/CIPP/issues/682

Describe the bug
When attempting to apply a P2 license to a user, the error received is:
Success. The user has been edited.
Succesfully edit user. The password is . We've failed to assign the license. Cannot convert a primitive value to the expected type 'Edm.Guid'. See the inner exception for more details.

To Reproduce
Steps to reproduce the behavior:

  1. Go to "Identity Management"
  2. Click on 'Users'
  3. Select "Edit user" for a user in a tenant with a P2 license
  4. Toggle "change license" in "edit user" pane
  5. Apply P2 license

Expected behavior
The expectation for this error

Screenshots
MicrosoftTeams-image (2)

Desktop:

  • OS: Win 11 w/ December 2021 rollup applied
  • Browser : Edge
  • Version: 97.0.1072.69 or close
Originally created by @SuburbanTotoro on GitHub (Jan 27, 2022). Original GitHub issue: https://github.com/KelvinTegelaar/CIPP/issues/682 **Describe the bug** When attempting to apply a P2 license to a user, the error received is: Success. The user has been edited. <br>Succesfully edit user. The password is . We've failed to assign the license. Cannot convert a primitive value to the expected type 'Edm.Guid'. See the inner exception for more details. **To Reproduce** Steps to reproduce the behavior: 1. Go to "Identity Management" 2. Click on 'Users' 3. Select "Edit user" for a user in a tenant with a P2 license 4. Toggle "change license" in "edit user" pane 5. Apply P2 license **Expected behavior** The expectation for this error **Screenshots** ![MicrosoftTeams-image (2)](https://user-images.githubusercontent.com/96153222/151444503-db0cbdfd-1db1-4cf5-8b36-e4ea120b6346.png) **Desktop:** - OS: Win 11 w/ December 2021 rollup applied - Browser : Edge - Version: 97.0.1072.69 or close
kerem 2026-03-02 12:41:34 +03:00
Author
Owner

@KelvinTegelaar commented on GitHub (Jan 28, 2022):

Fixed in dev.

<!-- gh-comment-id:1024051952 --> @KelvinTegelaar commented on GitHub (Jan 28, 2022): Fixed in dev.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/CIPP#353
No description provided.