mirror of
https://github.com/KelvinTegelaar/CIPP.git
synced 2026-04-25 16:26:09 +03:00
[GH-ISSUE #2769] [Feature Request]: Delete Named Locations #1373
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#1373
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 @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
@KelvinTegelaar commented on GitHub (Aug 5, 2024):
Only sponsors can create FRs, if you are a sponsor please included the organization you sponsor as.
@aitp-eric commented on GitHub (Aug 5, 2024):
We are a sponsor under our organization: AiTechPros