yammer group user remove [options]
Removes a user from a Yammer group
| Option | Description |
| ----------------------- | ----------------------------------------- |
| --id <id> | The id of the Yammer group
| --userId [id] | Remove the user with the ID specified. Defaults to the current user.
Implements this endpoint
Just assign it to me
Does this apply only to the current user or would it theoretically also be possible to remove another user from the specified group?
Hi @waldekmastykarz,
the official documentation does not show this. I will test it out. In case it works, I will implement it.
br,
Patrick
When you're investigating this, could you also check if there is a different API that allows for removing users from group in case it's not possible with this one? We could then unify them in a single command perhaps.
@pnp/office-365-cli-maintainers looking at the name of this command, wouldn't yammer group user remove be more consistent with other commands in the CLI? If you agree, I'll adjust it when merging the PR. Sorry for not catching it earlier @plamber 馃槉
@waldekmastykarz agree, makes more sense to have it as a 'remove' action.
Hi,
I had the same thought initially. But since you are leaving a group, I thought it might be better.
Nevertheless, I am fine with your suggested change.
Br
I agree with the suggestion @waldekmastykarz, we should look to use standard verbs for consistency, so using the remove verb makes sense.
Agree. User remove sounds ok to me
Most helpful comment
Hi,
I had the same thought initially. But since you are leaving a group, I thought it might be better.
Nevertheless, I am fine with your suggested change.
Br