Closed MartinM85 closed 5 months ago
Good suggestion @MartinM85, few comments:
of
at the end. "where the user is a member of".id
, let's use userId
since ID would reflect to group
.email
, let's use userEmail
for the same reason.but not multiple.
.userName
for the second example since we already used that one in the first example.text
, csv
, md
output since there are no properties. I think the csv
and md
output will be empty since they don't show complex values. For text
, defining defaultProperties looks also impossible here.I also doubt naming it entra user group list
or entra user groupmembership list
. What are your thoughts @pnp/cli-for-microsoft-365-maintainers?
@meId
or @meUserName
user get
command is using but not all
, but I will change ittext
, csv
and md
format the array of string, I've never used any command that returns only array of strings/numbers
- According to the doc, with flag it will return security-enabled groups
Ok, let's fix the description then because now we're saying that it only returns security groups.
* not sure how `text`, `csv` and `md` format the array of string, I've never used any command that returns only array of strings/numbers
Well, I can't think of a command right now that has a familiar output. Let's see what these responses will look like while developing the command.
Usage
m365 entra user groupmembership list [options]
Description
Retrieves all groups where the user is a member of
Options
-i, --userId [userId]
userId
,userName
oruserEmail
, but not multiple.-n, --userName [userName]
userId
,userName
oruserEmail
, but not multiple.-e, --userEmail [userEmail]
userId
,userName
oruserEmail
, but not multiple.--securityEnabledOnly [securityEnabledOnly]
Examples
Retrieves groups that the user is a member of
Retrieves only security groups that the user is a member of
Retrieves groups where the currently logged user is a member of
Retrieves groups where the currently logged user is a member of
Default properties
No response
Additional Info
The response contains a list of group ids
https://learn.microsoft.com/en-us/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0&tabs=http
I will work on it