First of all: Thanks for nextcloud, I am quite amazed how many well thought-through features it offers.
I am thinking about configuring my mail server to make a forward to all members of nextcloud-group. For that I’d like to get the members and addresses with a cron job (on the system where nextcloud is installed.)
Can you give me any hints on how to query the list of group members? Do I have to do an own SQL-Query directly to the backend? (I guess I won’t get an API stability guarantees for that.) Or is there some (REST-)API to request the information I am looking for? I don’t expect the specific request as an answer just a general direction in which I should be looking would suffice.
I am also open for any reasons why this is a bad idea and better solutions.
Thanks for the help in advance!