[GH-ISSUE #2769] [Feature Request]: Delete Named Locations #1373

Closed
opened 2026-03-02 13:43:40 +03:00 by kerem · 2 comments
Owner

Originally created by @aitp-eric on GitHub (Aug 5, 2024).
Original GitHub issue: https://github.com/KelvinTegelaar/CIPP/issues/2769

Description of the new feature - must be an in-depth explanation of the feature you want, reasoning why, and the added benefits for MSPs as a whole.

Add an option to DELETE a Named Location from inside of CIPP.

When setting up a new Named Location, there is currently the ability to add multiple Named Locations with the same name. This would be one use case for why this is required.

One additional check that should be made, before a Named Location is removed, is a check to make sure it is not use already in a Conditional Access Policy. If the Named Location is not in use, then the ability to delete the Named Location should be granted. If the Named Location is in use, the delete request should be denied.

Ex: https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.identity.signins/remove-mgidentityconditionalaccessnamedlocation?view=graph-powershell-1.0

PowerShell commands you would normally use to achieve above request

Connect-MgGraph -Scopes 'Policy.ReadWrite.ConditionalAccess'

Remove-MgIdentityConditionalAccessNamedLocation -NamedLocationId $namedLocationId

Originally created by @aitp-eric on GitHub (Aug 5, 2024). Original GitHub issue: https://github.com/KelvinTegelaar/CIPP/issues/2769 ### Description of the new feature - must be an in-depth explanation of the feature you want, reasoning why, and the added benefits for MSPs as a whole. Add an option to DELETE a Named Location from inside of CIPP. When setting up a new Named Location, there is currently the ability to add multiple Named Locations with the same name. This would be one use case for why this is required. One additional check that should be made, before a Named Location is removed, is a check to make sure it is not use already in a Conditional Access Policy. If the Named Location is not in use, then the ability to delete the Named Location should be granted. If the Named Location is in use, the delete request should be denied. Ex: https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.identity.signins/remove-mgidentityconditionalaccessnamedlocation?view=graph-powershell-1.0 ### PowerShell commands you would normally use to achieve above request Connect-MgGraph -Scopes 'Policy.ReadWrite.ConditionalAccess' Remove-MgIdentityConditionalAccessNamedLocation -NamedLocationId $namedLocationId
kerem 2026-03-02 13:43:40 +03:00
Author
Owner

@KelvinTegelaar commented on GitHub (Aug 5, 2024):

Only sponsors can create FRs, if you are a sponsor please included the organization you sponsor as.

<!-- gh-comment-id:2268580535 --> @KelvinTegelaar commented on GitHub (Aug 5, 2024): Only sponsors can create FRs, if you are a sponsor please included the organization you sponsor as.
Author
Owner

@aitp-eric commented on GitHub (Aug 5, 2024):

We are a sponsor under our organization: AiTechPros

<!-- gh-comment-id:2268614482 --> @aitp-eric commented on GitHub (Aug 5, 2024): We are a sponsor under our organization: AiTechPros
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#1373
No description provided.