Closed MartinM85 closed 4 months ago
Hi @MartinM85 thank you for the spec!
Few considerations:
id
option, let's be a bit more specific: The id of the member to be removed.userId
, groupId
, and deviceId
.aad
commands to entra
. So let's update this spec to use entra
as well. This means that it's probably best to wait until this issue is closed to avoid unneeded merge conflicts. We will try to prioritize this PR so we don't block other aad
commands.@milanholemans Do you suggest to have id
option together with userId
, groupId
, and deviceId
options or only userId
, groupId
, and deviceId
options and remove id
option?
It seems to me fine to have only "generic" id
option for this command.
Hi @MartinM85, the id
option is definitely useful, I'm just suggesting to add these other options as well. Since we have these options at the aad administrativeunit member add, the remove command should work similarly (with addition to id
and force
).
@milanholemans Spec updated.
Great, could you also replace all aad
occurrences with entra
?
@milanholemans Replaced
Great! Looks good now! As mentioned before, I think you better wait until #5663 is finished to avoid unneeded merge conflicts.
OK, there is already opened PR for #5663. I will postpone the delivery.
OK, there is already opened PR for #5663. I will postpone the delivery.
Yes indeed, we marked it as highest priority to unblock other issues.
Usage
m365 entra administrativeunit member remove
Description
Remove a specific member (user, group, or device) from an administrative unit
Options
-i, --id [id]
id
,userId
,userName
,groupId
,groupName
,deviceId
ordeviceName
.--userId [userId]
id
,userId
,userName
,groupId
,groupName
,deviceId
ordeviceName
.--userName [userName]
id
,userId
,userName
,groupId
,groupName
,deviceId
ordeviceName
.--groupId [groupId]
id
,userId
,userName
,groupId
,groupName
,deviceId
ordeviceName
.--groupName [groupName]
id
,userId
,userName
,groupId
,groupName
,deviceId
ordeviceName
.--deviceId [deviceId]
id
,userId
,userName
,groupId
,groupName
,deviceId
ordeviceName
.--deviceName [deviceName]
id
,userId
,userName
,groupId
,groupName
,deviceId
ordeviceName
.--administrativeUnitId [administrativeUnitId]
administrativeUnitId
oradministrativeUnitName
.--administrativeUnitName [administrativeUnitName]
administrativeUnitId
oradministrativeUnitName
.-f, --force
Examples
Remove a member specified by id from an administrative unit specified by id
Remove a user specified by id from an administrative unit specified by id
Remove a group specified by id from an administrative unit specified by id
Remove a device specified by id from an administrative unit specified by id
Remove a user specified by UPN from an administrative unit specified by name
Remove a group specified by name from an administrative unit specified by id
Remove a device specified by name from an administrative unit specified by name
Default properties
No response
Additional Info
https://learn.microsoft.com/en-us/graph/api/administrativeunit-delete-members?view=graph-rest-1.0&tabs=http
I will work on this issue.