sebra.sws – persons and places exposed as XML via HTTP

omraaderoller – List area access for the given user

GET http://sebra.uib.no/sws/omraaderoller?id={uid}
response
200 OK
Content-Type: text/xml
<administrators>
  <administrator id='...'>
    <role group='...'>
      <omraade_kode>...</omraade_kode>
      ...
    </role>
    ...
  </administrator>
</administrators>
	

This service lists what kind of access the given user should have to various areas in the externweb. It's invoked during processing of login.

Examples

GET http://sebra.uib.no/sws/omraaderoller?id=adbho returns this information for Helge Olsen:

HTTP/1.1 200 OK
Connection: Keep-Alive
Date: Fri, 18 Jun 2010 13:31:46 GMT
Server: Apache/2.2.11 (Unix) mod_python/3.3.1 Python/2.6.1 mod_ssl/2.2.11 OpenSSL/0.9.7d
Content-Type: text/xml
Keep-Alive: timeout=5, max=100

<?xml version="1.0" encoding="iso-8859-1"?>
<administrators>
  <administrator id="adbho">
    <role group="Innholdsprodusent">
      <omraade_kode>260</omraade_kode>
      <omraade_kode>62</omraade_kode>
    </role>
    <role group="Redakt\xF8r">
      <omraade_kode>211</omraade_kode>
      <omraade_kode>291</omraade_kode>
      <omraade_kode>324</omraade_kode>
      <omraade_kode>330</omraade_kode>
      <omraade_kode>331</omraade_kode>
      <omraade_kode>341</omraade_kode>
      <omraade_kode>50</omraade_ko...
(+ 91 more bytes not shown)