Projects tigase _server tigase-http-api Issues #127
Add support for setting user as admin using REST API (#127)
Closed
Andrzej Wójcik (Tigase) opened 1 year ago

It would be good to get information if a user is the admin of the domain (vhost) from the REST API for retrieving user details. It would also be good to be able to change if a user is the admin of the domain (set as admin/remove from admins list) using REST API for modifying user details.

Andrzej Wójcik (Tigase) commented 1 year ago

I've modified the REST API, so that it returns now isAdmin field in returned "user" object when retrieving user data from /rest/user (for retrieving data of authenticated user) or from /rest/user/{userJid} (for retrieving data of user by the admin of the installation).

Additionally, I've added support for changing user status, by setting isAdmin to the REST API call for PUT and POST. Omitting the isAdmin field, will just not change the state of the user.

Artur Hefczyc commented 1 year ago

But this is not deployed yet?

Andrzej Wójcik (Tigase) commented 1 year ago

No, this is just the HTTP API part. The other part in 1dev plugin (for TB-16) still needs to be implemented.

Andrzej Wójcik (Tigase) commented 1 year ago

There is no docker image of Tigase XMPP Server with those changes.

Artur Hefczyc commented 1 year ago

Ah, ok.

wojciech.kapcia@tigase.net batch edited 2 months ago
Name Previous Value Current Value
Iterations
empty
tigase-server-8.4.0
issue 1 of 1
Type
Task
Priority
Normal
Assignee
Version
tigase-server-8.4.0
Iterations
Issue Votes (0)
Watchers (2)
Reference
tigase/_server/tigase-http-api#127
Please wait...
Page is in error, reload to recover