Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to add External/Remote users to a group #40

Closed
droobah opened this issue May 19, 2020 · 1 comment
Closed

Unable to add External/Remote users to a group #40

droobah opened this issue May 19, 2020 · 1 comment

Comments

@droobah
Copy link

droobah commented May 19, 2020

I am trying to automate added users from a remote s2s system to groups in OpenFire.
It would be nice to have functionality to add users by their full JID. Does this functionality exist and I just missed it?

I have implemented this in my fork by adding a setGroupMembers function that allows me to overwrite all members with a list of JIDs.

droobah@a482813

@guusdk
Copy link
Member

guusdk commented May 31, 2022

If I'm correct, there is no way to add any members (or admins) to a group - not even local ones.

Update: that's not quite correct: you can add members or admins that are local users to a group, using the restapi/v1/users/{username}/groups endpoint.

guusdk added a commit to guusdk/openfire-restAPI-plugin that referenced this issue Jun 2, 2022
When creating or updating a group, the provided members and admins should not be ignored.

Note that this change will result in admins/members being removed, when an update to an existing group does not properly include the existing members and admins. Prior to this commit, no modification would have been made to the admins and members.
guusdk added a commit to guusdk/openfire-restAPI-plugin that referenced this issue Jun 22, 2022
… users

JIDs on domains other than the local domain can be in groups. This commit adds support for that in the UserGroups endpoints, with the exception of an endpoint that would make the code iterate over all groups in the system.
guusdk added a commit to guusdk/openfire-restAPI-plugin that referenced this issue Jun 22, 2022
… users

JIDs on domains other than the local domain can be in groups. This commit adds support for that in the UserGroups endpoints, with the exception of an endpoint that would make the code iterate over all groups in the system.
guusdk added a commit to guusdk/openfire-restAPI-plugin that referenced this issue Jun 23, 2022
When creating or updating a group, the provided members and admins should not be ignored.

Note that this change will result in admins/members being removed, when an update to an existing group does not properly include the existing members and admins. Prior to this commit, no modification would have been made to the admins and members.
guusdk added a commit to guusdk/openfire-restAPI-plugin that referenced this issue Jun 23, 2022
… users

JIDs on domains other than the local domain can be in groups. This commit adds support for that in the UserGroups endpoints, with the exception of an endpoint that would make the code iterate over all groups in the system.
@guusdk guusdk closed this as completed in b16342c Jun 23, 2022
guusdk added a commit that referenced this issue Jun 23, 2022
JIDs on domains other than the local domain can be in groups. This commit adds support for that in the UserGroups endpoints, with the exception of an endpoint that would make the code iterate over all groups in the system.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants