def getUserRole( dbid, userid, inclgrps = nil )
      @dbid, @userid, @inclgrps = dbid, userid, inclgrps
      
      xmlRequestData = toXML( :userid , @userid ) 
      xmlRequestData << toXML( :inclgrps , "1" ) if @inclgrps  
      sendRequest( :getUserRole, xmlRequestData )
      
      @user = getResponseElement( :user )
      @userid = @user.attributes["id"] if @user 
      @username = getResponsePathValue("user/name")
      @role = getResponseElement( "user/roles/role" )
      @roleid = @role.attributes["id"] if @role
      @rolename = getResponsePathValue("user/roles/role/name")
      access = getResponseElement("user/roles/role/access")
      @accessid = access.attributes["id"] if access
      @access = getResponsePathValue("user/roles/role/access") if access
      member = getResponseElement("user/roles/role/member")
      @member_type = member.attributes["type"] if member
      @member = getResponsePathValue("user/roles/role/member") if member
      
      return self if @chainAPIcalls
      return @user, @role
    end
def getUserRole( dbid, userid, inclgrps = nil )
      @dbid, @userid, @inclgrps = dbid, userid, inclgrps
      
      xmlRequestData = toXML( :userid , @userid ) 
      xmlRequestData << toXML( :inclgrps , "1" ) if @inclgrps  
      sendRequest( :getUserRole, xmlRequestData )
      
      @user = getResponseElement( :user )
      @userid = @user.attributes["id"] if @user 
      @username = getResponsePathValue("user/name")
      @role = getResponseElement( "user/roles/role" )
      @roleid = @role.attributes["id"] if @role
      @rolename = getResponsePathValue("user/roles/role/name")
      access = getResponseElement("user/roles/role/access")
      @accessid = access.attributes["id"] if access
      @access = getResponsePathValue("user/roles/role/access") if access
      member = getResponseElement("user/roles/role/member")
      @member_type = member.attributes["type"] if member
      @member = getResponsePathValue("user/roles/role/member") if member
      
      return self if @chainAPIcalls
      return @user, @role
    end
API_GetUserRole