Broadcast message to all Teamcity users

Is there a way to send out a message to all teamcity users. Since all users have an email we should be able to boardcast a message.
For example when the teamcity server is being upgraded I may want to notify users of down time.

5 comments
Comment actions Permalink

Hi Paul

We have this feature request in TW-5950, please vote.

Michael

0
Comment actions Permalink

Technically you can do this all via the REST API until the request has been implemented.

you would do something as follows:

Get a list of the users in your system - http://myserver:8000/app/rest/users

then foreach user in the list get the email

http://myserver:8000/app/rest/users/id:12 - gives the full user object - that has an email :)

a Sample Implementation in c# would look as follows:

https://gist.github.com/1118221



Hope it helps until the new request is fulfilled

Paul
0
Comment actions Permalink

Great! Thanks!

0
Comment actions Permalink

Is there any sample java code that accesses the REST API  and do basic authentication?

0
Comment actions Permalink

In Java its HttpUrlConnection

URL iurl = new URL(url);
HttpURLConnection uc = (HttpURLConnection)iurl.openConnection();
uc.connect();

something similar to that and you can work out the rest - Im not a Java developer unfortunately or I would have given you sample code

p.
0

Please sign in to leave a comment.