mirror of
https://github.com/KelvinTegelaar/CIPP.git
synced 2026-04-25 08:16:01 +03:00
[GH-ISSUE #4090] [Feature Request]: Allow License Removal Workflow to Handle Inherited Licenses from Group Membership #1854
Labels
No labels
API
Feature
NotABug
NotABug
Planned
Sponsor Priority
Sponsor Priority
bug
documentation
duplicate
enhancement
needs more info
no-activity
no-priority
not-assigned
pull-request
react-conversion
react-conversion
roadmap
security
stale
unconfirmed-by-user
unconfirmed-by-user
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/CIPP#1854
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @AbsaconIT on GitHub (May 14, 2025).
Original GitHub issue: https://github.com/KelvinTegelaar/CIPP/issues/4090
Please confirm:
Problem Statement
During user offboarding, we encounter an issue where certain licenses cannot be removed due to inheritance from group membership. Specifically, we receive the error:
"Could not remove the license for user@example.com. Error: User license is inherited from group membership and cannot be removed directly from the user."
This occurs because an Entra ID P2 license is assigned via a dynamic group (Exchange_License_Holders). We would like the offboarding workflow to handle this scenario more gracefully.
Benefits for MSPs
Value or Importance
This feature is important because it addresses a common edge case in automated offboarding. Without this, MSPs must manually identify and remove licenses that include an Exchange license. Once the Exchange license is removed, the inherited Entra ID P2 license is automatically revoked. Automating this step would streamline the offboarding process, reduce manual effort, and minimize the risk of errors.
PowerShell Commands (Optional)
No response
@KelvinTegelaar commented on GitHub (May 15, 2025):
To do this, set the checkbox to remove the user from their groups - we'll still skip the removal but when teh user is removed from groups it resolves the issue on its own.