Get a list of all Communities and their ID

If you ever need to get a list of community names and their community uuid out of connections, you can open your SQL Browser and connect to the communities database and try to get the info out of the tables.

Or you can open wsadmin.

wsadmin>execfile(“communitiesAdmin.py”)
wsadmin>commList=CommunitiesService.fetchAllComm()
wsadmin>for cd in commList;
wsadmin> print cd.get(“name”)+”;”+cd.get(“uuid”)
wsadmin>[Enter]

 

Important: Don’t forget the space after the > in this line: wsadmin> print cd.get(“name”)+”;”+cd.get(“uuid”)