Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

How can I pre-populate list of people in corporate Matrix server? #2327

Closed
MurzNN opened this issue Jul 3, 2017 · 11 comments
Closed

How can I pre-populate list of people in corporate Matrix server? #2327

MurzNN opened this issue Jul 3, 2017 · 11 comments

Comments

@MurzNN
Copy link

MurzNN commented Jul 3, 2017

Our company need to pre-populate list of all employees for each user in company. So new employee must see list of all other employees in "People" list, without manually finding and adding them.

Before our company use XMPP server and I configure shared roster that pre-loads list of all users from LDAP server, so new users see contacts of all employees, grouped by department, and it auto-add new employee to contact list (roster) for old users too.

Is there any way to do same thing in Matrix Synapse home server?

@turt2live
Copy link
Member

You'd have to get an access token for those users and impersonate them. Although the user directory stuff on the horizon may work well for your use case.

@MurzNN
Copy link
Author

MurzNN commented Jul 3, 2017

@turt2live, thanks for quick answer! Maybe you can provide some example how I can get and add-remove items in user contact list via command-like script, having user access token?

Also can you point me to description what is user directory stuff and how can I enable it on Matrix homeserver? Thanks!

@turt2live
Copy link
Member

The user directory hasn't been made yet, but it is being tracked here: element-hq/element-web#2930

As for the script, it would be convoluted to be honest. Using the API you'd have to invite users and join the rooms, possibly tagging them as 1:1 as well. The interactive API is a good place to start: http://matrix.org/docs/api/client-server/

@Tesla2k
Copy link

Tesla2k commented Feb 26, 2019

Is there any solution for this yet? This blocks me from switching from XMPP to Matrix

@neilisfragile
Copy link
Contributor

neilisfragile commented Feb 26, 2019

The user directory exists and populating of new users can happen via the admin register_user API

Though this isn't the same as a contacts list - will you be running your own instance?

@Tesla2k
Copy link

Tesla2k commented Feb 27, 2019

Yes I will run my own instance.

Sent with GitHawk

@UndeadKernel
Copy link

I was wondering if anybody got something working to address this issue.
I'm also looking to pre-populate the people list of everyone with everyone else.

@richvdh richvdh closed this as completed Jan 27, 2020
@tucnak
Copy link

tucnak commented May 30, 2021

This is complete marasmus— the inability to have people list of some sort. I mean, there's search so there's obviously some index in place. The next logical step is simply to expose the list itself in some meaningful way and implement a flag for "shared/public people" behaviour.

But apparently, this is considered too specific, or perhaps, too basic, for something like Synapse! Even though this behaviour is considered par for the course for most if not all messaging programs; we've already established that Jabber can do it, all proprietary shit does it, and consistently at that! The lack of roster–kind behaviour is a drag. Currently, the only way around this is to create specific department rooms and populate them with users manually. Then the room itself functions as a list, and we can have #general, too.

Why is this closed?

I don't understand, how a selection from the admin API above is supposed to address the complete lack of rosters at any level and make no mistake that is the real subject of this issue.

PS. My story is that we simply want to keep a coworker directory on our corporate instance, which is already kind of there— you can fetch it— by search. Why isn't there an option to have it exposed is baffling to me.

@hex-m
Copy link

hex-m commented May 31, 2021

You can use ma1sd to add results from your identity backend to the user-search. The Synapse option search_all_users may also fit your use-case.

Having a "contact list" would be a client feature and is thus tracked in the element-web issue tracker.

@BxptisteM
Copy link

Hi,

Is it still not possible to pre-fill the list of peoples ??
I really need to implement this in my synapse server asap...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants