Difference between revisions of "GOCDB/PI/get user method"

From EGIWiki
< GOCDB‎ | PI
Jump to: navigation, search
(parameters)
(Output Example)
Line 38: Line 38:
 
=== Output Example ===
 
=== Output Example ===
  
<?xml version="1.0"?>
+
<?xml version="1.0" encoding="UTF-8"?>
<results>
+
<results>
 +
  <EGEE_USER ID="1484G0" PRIMARY_KEY="1484G0">
 +
    <FORENAME>David</FORENAME>
 +
    <SURNAME>Meredith</SURNAME>
 +
    <TITLE>Dr</TITLE>
 +
    <DESCRIPTION></DESCRIPTION>
 +
    <GOCDB_PORTAL_URL>https://goc.egi.eu/portal/index.php?Page_Type=User&amp;id=1484</GOCDB_PORTAL_URL>
 +
    <EMAIL>david.meredith@stfc.ac.uk</EMAIL>
 +
    <TEL>+44 1925 603762</TEL>
 +
    <WORKING_HOURS_START/>
 +
    <WORKING_HOURS_END/>
 +
    <CERTDN>/C=UK/O=eScience/OU=CLRC/L=DL/CN=david meredith</CERTDN>
 +
    <APPROVED/>
 +
    <ACTIVE/>
 +
    <HOMESITE></HOMESITE>
 +
    <USER_ROLE>
 +
      <USER_ROLE>Service Group Administrator</USER_ROLE>
 +
      <ON_ENTITY>OPSTOOLS</ON_ENTITY>
 +
      <ENTITY_TYPE>servicegroup</ENTITY_TYPE>
 +
    </USER_ROLE>
 +
    <USER_ROLE>
 +
      <USER_ROLE>Service Group Administrator</USER_ROLE>
 +
      <ON_ENTITY>DAVETESTSG</ON_ENTITY>
 +
      <ENTITY_TYPE>servicegroup</ENTITY_TYPE>
 +
    </USER_ROLE>
 +
    <USER_ROLE>
 +
      <USER_ROLE>Site Operations Manager</USER_ROLE>
 +
      <ON_ENTITY>GRIDOPS-GOCDB</ON_ENTITY>
 +
      <ENTITY_TYPE>site</ENTITY_TYPE>
 +
    </USER_ROLE>
 +
  </EGEE_USER>
 +
<!--
 +
</EGEE_USER>
 
   <EGEE_USER USER_ID="185" PRIMARY_KEY="6215G0">
 
   <EGEE_USER USER_ID="185" PRIMARY_KEY="6215G0">
 
   <FORENAME>Gilles</FORENAME>
 
   <FORENAME>Gilles</FORENAME>
Line 46: Line 78:
 
   <DESCRIPTION>GOCDB administrator</DESCRIPTION>
 
   <DESCRIPTION>GOCDB administrator</DESCRIPTION>
 
   <GOCDB_PORTAL_URL>
 
   <GOCDB_PORTAL_URL>
     <nowiki>https://next.gocdb.eu/portal/index.php?Page_Type=View_Object&object_id=1133&grid_id=0</nowiki>
+
     <nowiki>https://goc.egi.eu/portal/index.php?Page_Type=User&id=1484</nowiki>
 
   </GOCDB_PORTAL_URL>
 
   </GOCDB_PORTAL_URL>
 
   <EMAIL>snip</EMAIL>
 
   <EMAIL>snip</EMAIL>
Line 67: Line 99:
 
   </USER_ROLE>
 
   </USER_ROLE>
 
   </EGEE_USER>
 
   </EGEE_USER>
 +
-->
 
  </results>
 
  </results>
  
 
[[GOCDB/PI/Technical_Documentation|Back to GOCDB technical Documentation main page]]
 
[[GOCDB/PI/Technical_Documentation|Back to GOCDB technical Documentation main page]]

Revision as of 13:42, 5 November 2013

Main EGI.eu operations services Support Documentation Tools Activities Performance Technology Catch-all Services Resource Allocation Security


GOC DB menu: Home Documentation Index


Method: get_user

Description Returns a user or a list of users with associated details and roles
Protection Level Protected (level 2)

Entry point

https://goc.egi.eu/gocdbpi/private/?method=get_user

parameters

parameter effect format/value(s) default example
dn Limit results to user with given certificate DN DN in standard string chain format all ?method=get_user&dn=/C=ZZ/O=certif/OU=users/OU=ngi.org/CN=Foo Bar
dnlike Limit results to user with certificate that matches given wildcard Search string (SQL syntax) all ?method=get_user&dnlike=%/OU=ngi.org%
forename Limit results to user(s) with given forename any string all ?method=get_user&forename=Robert
surname Limit results to user(s) with given surename any string all ?method=get_user&surname=Smith
roletype Limit results to user(s) with the specified role type(s) comma separated list of role types all ?method=get_user&roletype=EGI CSIRT Officer,Chief Operations Officer

XML schema

https://goc.egi.eu/gocdbpi/private/?method=get_user&output=xmlschema

Output Example

<?xml version="1.0" encoding="UTF-8"?> <results>

 <EGEE_USER ID="1484G0" PRIMARY_KEY="1484G0">
   <FORENAME>David</FORENAME>
   <SURNAME>Meredith</SURNAME>
   <TITLE>Dr</TITLE>
   <DESCRIPTION></DESCRIPTION>
   <GOCDB_PORTAL_URL>https://goc.egi.eu/portal/index.php?Page_Type=User&id=1484</GOCDB_PORTAL_URL>
   <EMAIL>david.meredith@stfc.ac.uk</EMAIL>
   <TEL>+44 1925 603762</TEL>
   <WORKING_HOURS_START/>
   <WORKING_HOURS_END/>
   <CERTDN>/C=UK/O=eScience/OU=CLRC/L=DL/CN=david meredith</CERTDN>
   <APPROVED/>
   <ACTIVE/>
   <HOMESITE></HOMESITE>
   <USER_ROLE>
     <USER_ROLE>Service Group Administrator</USER_ROLE>
     <ON_ENTITY>OPSTOOLS</ON_ENTITY>
     <ENTITY_TYPE>servicegroup</ENTITY_TYPE>
   </USER_ROLE>
   <USER_ROLE>
     <USER_ROLE>Service Group Administrator</USER_ROLE>
     <ON_ENTITY>DAVETESTSG</ON_ENTITY>
     <ENTITY_TYPE>servicegroup</ENTITY_TYPE>
   </USER_ROLE>
   <USER_ROLE>
     <USER_ROLE>Site Operations Manager</USER_ROLE>
     <ON_ENTITY>GRIDOPS-GOCDB</ON_ENTITY>
     <ENTITY_TYPE>site</ENTITY_TYPE>
   </USER_ROLE>
 </EGEE_USER>
</results>

Back to GOCDB technical Documentation main page