Set autocreated groups with LDAP group channel map as private

Description

Hi all !
I created my groups with the LDAP group channel map (with a big JSON).
The groups are created as public whereas I would like them private. I currently have 108 groups (I’m not going to put them in private by hand).
Does anyone have a solution to put them in private, like script or whatever?

Server Setup Information

  • Version of Rocket.Chat Server: 3.15.1
  • Operating System: Ubuntu 20.04
  • Deployment Method: tar
  • Number of Running Instances: 7
  • DB Replicaset Oplog: default?
  • NodeJS Version: 12.18.4
  • MongoDB Version: 4.0
  • Proxy: haproxy
  • Firewalls involved: no

Any additional Information

I’ll try with the API, but maybe there is something simpler.

Thanks !

Note: as mentioned in API calls for groups/private channels does not work for admins · Issue #15435 · RocketChat/Rocket.Chat · GitHub
We cannot use an admin account with REST API.
I will try to use the “Rocket.Cat” account which is owner of all autocreated channels.

I think this might help you?

Hi John,
I had just finished writing my script.
I wasted a lot of time because the API still works with the old logic: a private canal is a group
I didn’t understand right away that I had to use the groups AND channels in API.
Problem solved. Thanks !

Note: It can be an evolution request, if the channels must be created with the LDAP function, that it can be specified as private or public.

Regards,

Fab!!!

You could add this as a NFR eg

“Allow LDAP channels to be set as private or public”

Please check first though.