Like what you see? Have a play with our trial version.

Error rendering macro 'rw-search'

null

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

will contain these parameters:

Expand
titleINCLUDEUSERSINGROUP

This function is used to include multiple specified Yellowfin users to a specific user group.

This request will require an array of AdministrationPerson object to specify the users, and the AdministrationGroup object to define the user group.

 

Request Parameters

The following parameters will be passed with this request:

Request Element

Data Type

Description

LoginId

String

Yellowfin web services admin user ID. This can be the user ID or the email address, depending on the Logon ID method.

This Yellowfin account must have the “web services” role enabled, and must belong to the Default (i.e. Primary) Org.

Password

String

Password of the above account.

OrgId

Integer

Default (i.e. Primary) organization ID within Yellowfin. Always set this to 1.

Function

String

Web services function. Set this to "INCLUDEUSERSINGROUP".

PersonAdministrationPerson[]An object array containing details of the users to add them to a group. See table below.
GroupAdministrationGroupObject containing details of the user group to which the users are added. See table below.
OrgRefString

You may include a Client Org ID to search for this group within a specific client org. If this is not specified, then the group will be searched in the default organization.

 

Anchor
incgrpaps
incgrpaps

These are the main parameters that you need to set in the AdministrationPerson object array for this function:

AdministrationPerson Element

Data Type

Description

UserIdString

Existing Yellowfin user to add them to the group. This could be a user ID or an email address, depending on the Logon ID method.

 

Anchor
incgrpags
incgrpags

These are the main parameters that you need to set in the AdministrationGroup object for this function:

AdministrationGroup Element

Data Type

Description

GroupNameString

Name of the group to which the users are to be added.

 

 

The following SOAP example shows the parameters that you can pass to this call:

Code Block
languagexml
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://webservices.web.mi.hof.com/">
   <soapenv:Header/>
   <soapenv:Body>
      <web:remoteAdministrationCall>
         <arg0>
           <loginId>admin@yellowfin.com.au</loginId>
           <password>test</password>
           <orgId>1</orgId>
           <function>INCLUDEUSERSINGROUP</function>
           <people>
           	<userId>binish.sheikh@yellowfin.com.au</userId>
           	<userId>admin@yellowfin.com.au</userId>
           </people>
           <group>
           	<groupName>Administrators</groupName>
           </group>          
         </arg0>
      </web:remoteAdministrationCall>
   </soapenv:Body>
</soapenv:Envelope>

 

 

Response Parameters

The response returned will contain these parameters:

Response Element

Data Type

Description

Response Element

Data Type

Description

StatusCode

String

Status of the web service call. Possible values include:

  • SUCCESS
  • FAILURE

 

 

The service will return the below response, according to our SOAP example:

Code Block
languagexml
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
   <S:Body>
      <ns2:remoteAdministrationCallResponse xmlns:ns2="http://webservices.web.mi.hof.com/">
         <return>
            <errorCode>0</errorCode>
            <messages>Successfully Authenticated User: admin@yellowfin.com.au</messages>
            <messages>Web Service Request Complete</messages>
            <sessionId>799b3c35c5359c6105586e426f1b9f8c</sessionId>
            <statusCode>SUCCESS</statusCode>
         </return>
      </ns2:remoteAdministrationCallResponse>
   </S:Body>
</S:Envelope>

 

StatusCode

String

Status of the web service call. Possible values include:

  • SUCCESS
  • FAILURE

     

     

    Instructions

    See below for step-by-step instructions on how to perform this call, using a Java example:

    Expand
    titleStep-by-step instructions
    • Start with a basic request for this function:

      Code Block
      languagejava
      AdministrationServiceRequest rsr = new AdministrationServiceRequest();
      
      rsr.setLoginId("admin@yellowfin.com.au");
      rsr.setPassword("test");
      rsr.setOrgId(1);
      
      rsr.setFunction("INCLUDEUSERSINGROUP");



    • You may specify a client organization to search for the group within it. But if not included, then the group will be searched in the default (that is, the primary) organization.

      Code Block
      languagejava
      rsr.setOrgRef("org1");
      



    • Set parameters to identify existing users to include them to a group:

      Code Block
      languagejava
      AdministrationPerson[] ap = new AdministrationPerson[1];
      ap[0] = new AdministrationPerson();
      ap[0].setUserId("john.smith@yellowfin.com.au");              // must be an existing Yellowfin user
      
      
      rsr.setPeople(ap);
      

     

    • Set parameters for the group where the users are to be included:

      Code Block
      languagejava
      AdministrationGroup group = new AdministrationGroup();
      group.setGroupName("Administrators");					//must be an existing group
      
      rsr.setGroup(group);

     

    • Once the request is configured, perform the call:

      Code Block
      languagejava
      AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);
      

      Initialize the Administration web service. Click here to learn how to do this. 

     

    • The response returned will contain these parameters:

      Response Element

      Data Type

      Description

      StatusCode

      String

      Status of the web service call. Possible values include:

      • SUCCESS
      • FAILURE

     

     

    Complete Example

    Below is a full example of this function. To use it for yourself, carry out the following the steps:

    1. Copy the code and save it as ws_includeusersingroup.jsp.
    2. Put the file in the root folder: Yellowfin/appserver/webapps/ROOT.
    3. Adjust the host, port, admin user, existing users, and group name according to your environment.
    4. Run http://<host>:<port>/ws_includeusersingroup.jsp from your Internet browser.

     

    Code Block
    languagejava
    themeEclipse
    <%            
    /*             ws_includeusersingroup.jsp              */
    %>
    <%@ page language="java" contentType="text/html; charset=UTF-8" %>
    <%@ page import="com.hof.util.*, java.util.*, java.text.*" %> 
    <%@ page import="com.hof.web.form.*" %>
    <%@ page import="com.hof.mi.web.service.*" %>
    <%
    AdministrationServiceService s_adm = new AdministrationServiceServiceLocator("localhost",8080, "/services/AdministrationService", false);        // adjust host and port number
    
    AdministrationServiceSoapBindingStub adminService = (AdministrationServiceSoapBindingStub) s_adm.getAdministrationService();
    
    AdministrationServiceRequest rsr = new AdministrationServiceRequest();
    
    rsr.setLoginId("admin@yellowfin.com.au");          // provide your Yellowfin web services admin account
    rsr.setPassword("test");                           // set to password of the above account
    
    rsr.setOrgId(1);
    
    rsr.setFunction("INCLUDEUSERINGROUP");
    
    
    //Specify a client org (if omitted, default (primary) org groups will be searched):
    rsr.setOrgRef("org1");
    
    
    //Provide all the users that are to be included:
    AdministrationPerson[] ap = new AdministrationPerson[1];
    ap[0] = new AdministrationPerson();
    ap[0].setUserId("john.smith@yellowfin.com.au");  			// must be an existing Yellowfin user
    
    rsr.setPerson(ap);
    
    
     
    //Specify group to add the users to 
    AdministrationGroup group = new AdministrationGroup();
    group.setGroupName("Administrators");                 	// must be an existing user group
    
    rsr.setGroup(group);
    
    
    AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);
    
    
    if ("SUCCESS".equals(rs.getStatusCode()) ) {
    	out.write("Success");
    } else {
    	out.write("Failure");
    	out.write(" Code: " + rs.getErrorCode());
    }
    %>
    
    

     


     

    ...

    Expand
    titleEXCLUDEUSERFROMGROUP

    This function is used to add a specific Yellowfin user to a specific user group, but with an "exclude" tag. Note that this user is not actually removed from the group, but will exist as an excluded member.

    This request will require the AdministrationPerson object to specify the user, and the AdministrationGroup object to define the user group.

     

    Request Parameters

    The following parameters will be passed with this request:

    Request Element

    Data Type

    Description

    LoginId

    String

    Yellowfin web services admin user ID. This can be the user ID or the email address, depending on the Logon ID method.

    This Yellowfin account must have the “web services” role enabled, and must belong to the Default (i.e. Primary) Org.

    Password

    String

    Password of the above account.

    OrgId

    Integer

    Default (i.e. Primary) organization ID within Yellowfin. Always set this to 1.

    Function

    String

    Web services function. Set this to "EXCLUDEUSERFROMGROUP".

    PersonAdministrationPersonObject containing details of the user to be excluded from group. See table below.
    GroupAdministrationGroupObject containing details of the user group. See table below.
    OrgRefString

    You may include a Client Org ID to search for this group within a specific client org. If this is not specified, then the group will be searched in the default organization.

     

    Anchor
    excluserap
    excluserap

    These are the main parameters that you need to set in the AdministrationPerson object for this function:

    AdministrationPerson Element

    Data Type

    Description

    UserIdString

    An existing Yellowfin user to exclude them from the group. This value could be a user ID or an email address, depending on the Logon ID method.

     

    Anchor
    excluserag
    excluserag

    These are the main parameters that you need to set in the AdministrationGroup object for this function:

    AdministrationGroup Element

    Data Type

    Description

    GroupNameString

    Name of the group from which the user is to be excluded.

     

     

    The following SOAP example shows the parameters that you can pass to this call:

    Code Block
    languagexml
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://webservices.web.mi.hof.com/">
       <soapenv:Header/>
       <soapenv:Body>
          <web:remoteAdministrationCall>
             <arg0>
               <loginId>admin@yellowfin.com.au</loginId>
               <password>test</password>
               <orgId>1</orgId>
               <function>EXCLUDEUSERFROMGROUP</function>
               <person>
               	<userId>binish.sheikh@yellowfin.com.au</userId>
               </person>
               <group>
               	<groupName>Administrators</groupName>
               </group>                     
             </arg0>
          </web:remoteAdministrationCall>
       </soapenv:Body>
    </soapenv:Envelope>

     

     

    Response Parameters

    The response returned will contain these parameters:

    Response Element

    Data Type

    Description

    StatusCode

    String

    Status of the web service call. Possible values include:

    • SUCCESS
    • FAILURE

     

     

    The service will return the below response, according to our SOAP example:

    Code Block
    languagexml
    <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
       <S:Body>
          <ns2:remoteAdministrationCallResponse xmlns:ns2="http://webservices.web.mi.hof.com/">
             <return>
                <errorCode>0</errorCode>
                <messages>Successfully Authenticated User: admin@yellowfin.com.au</messages>
                <messages>Web Service Request Complete</messages>
                <sessionId>c15a0993df4f37f4dbff9b3244f41ea2</sessionId>
                <statusCode>SUCCESS</statusCode>
             </return>
          </ns2:remoteAdministrationCallResponse>
       </S:Body>
    </S:Envelope>

     

     

    Instructions

    See below for step-by-step instructions on how to perform this call, using a Java example:

    Expand
    titleStep-by-step instructions
    • Start with a basic request for this function:

      Code Block
      languagejava
      AdministrationServiceRequest rsr = new AdministrationServiceRequest();
      
      rsr.setLoginId("admin@yellowfin.com.au");
      rsr.setPassword("test");
      rsr.setOrgId(1);
      
      rsr.setFunction("EXCLUDEUSERFROMGROUP");



    • You may specify a client organization to search for the group within it. But if not included, then the group will be searched in the default (that is, the primary) organization.

      Code Block
      languagejava
      rsr.setOrgRef("org1");
      



    • Set parameters to identify a user :

      Code Block
      languagejava
      AdministrationPerson ap = new AdministrationPerson();
      ap.setUserId("john.smith@yellowfin.com.au");  	// must be an existing Yellowfin user
      
      rsr.setPerson(ap);
      

     

    • Set parameters for the group:

      Code Block
      languagejava
      AdministrationGroup group = new AdministrationGroup();
      group.setGroupName("Administrators");			//must be an existing user group
      
      rsr.setGroup(group);

     

    • Once the request is configured, perform the call:

      Code Block
      languagejava
      AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);
      

      Initialize the Administration web service. Click here to learn how to do this. 

     

    • The response returned will contain these parameters:

      Response Element

      Data Type

      Description

      StatusCode

      String

      Status of the web service call. Possible values include:

      • SUCCESS
      • FAILURE

     

     

    Complete Example

    Below is a full example of this function. To use it for yourself, carry out the following the steps:

    1. Copy the code and save it as ws_excludeuserfromgroup.jsp.
    2. Put the file in the root folder: Yellowfin/appserver/webapps/ROOT.
    3. Adjust the host, port, admin user, user to exclude, and the group name according to your environment.
    4. Run http://<host>:<port>/ws_excludeuserfromgroup.jsp from your Internet browser.

     

    Code Block
    languagejava
    themeEclipse
    <%            
    /*              ws_ excludeuserfromgroup.jsp               */
    %>
    <%@ page language="java" contentType="text/html; charset=UTF-8" %>
    <%@ page import="com.hof.util.*, java.util.*, java.text.*" %> 
    <%@ page import="com.hof.web.form.*" %>
    <%@ page import="com.hof.mi.web.service.*" %>
    <%
    AdministrationServiceService s_adm = new AdministrationServiceServiceLocator("localhost",8080, "/services/AdministrationService", false);        // adjust host and port number
    
    AdministrationServiceSoapBindingStub adminService = (AdministrationServiceSoapBindingStub) s_adm.getAdministrationService();
    
    AdministrationServiceRequest rsr = new AdministrationServiceRequest();
    
    rsr.setLoginId("admin@yellowfin.com.au");          // provide your Yellowfin web services admin account
    rsr.setPassword("test");                           // set the password of the above account
    
    rsr.setOrgId(1);
    
    rsr.setFunction("EXCLUDEUSERFROMGROUP");
    
    
    //Specify the client org (if omitted, the default (primary) org groups will be searched):
    
    
    rsr.setOrgRef("org1");
    
    
    //Specify a user to exclude:
    
    
    AdministrationPerson ap = new AdministrationPerson();
    ap.setUserId("john.smith@yellowfin.com.au");  		// must be an existing Yellowfin use
    
    rsr.setPerson(ap);
    
    
    //Specify which group to exclude from:
    
    AdministrationGroup group = new AdministrationGroup();
    group.setGroupName("Administrators");                 // must be an existing user group
    
    rsr.setGroup(group);
    
    AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);
    
    
    if ("SUCCESS".equals(rs.getStatusCode()) ) {
    	out.write("Success");
    } else {
    	out.write("Failure");
    	out.write(" Code: " + rs.getErrorCode());
    }
    %>
    
    

     


     

     

    Anchor
    excludeusersfromgroup
    excludeusersfromgroup

    ...

    Expand
    titleDELUSERFROMGROUP

    This function is used to remove a specific Yellowfin user from a specific user group. On doing so, the user will not appear in the group's member list at all.

    This request will require the AdministrationPerson object to specify the user, and the AdministrationGroup object to define the user group.

     

    Request Parameters

    The following parameters will be passed with this request:

    Request Element

    Data Type

    Description

    LoginId

    String

    Yellowfin web services admin user ID. This can be the user ID or the email address, depending on the Logon ID method.

    This Yellowfin account must have the “web services” role enabled, and must belong to the Default (i.e. Primary) Org.

    Password

    String

    Password of the above account.

    OrgId

    Integer

    Default (i.e. Primary) organization ID within Yellowfin. Always set this to 1.

    Function

    String

    Web services function. Set this to "DELUSERFROMGROUP".

    PersonAdministrationPersonObject containing details of the user who is to be deleted from the group. See table below.
    GroupAdministrationGroupObject containing details of the user group. See table below.
    OrgRefString

    You may include a Client Org ID to search for this group within a specific client org. If this is not specified, then the group will be searched in the default organization.

     

    Anchor
    deluserap
    deluserap

    These are the main parameters that you need to set in the AdministrationPerson object for this function:

    AdministrationPerson Element

    Data Type

    Description

    UserIdString

    An existing Yellowfin user to remove them from the group. This value could be a user ID or an email address, depending on the Logon method.

     

    Anchor
    deluserag
    deluserag

    These are the main parameters that you need to set in the AdministrationGroup object for this function:

    AdministrationGroup Element

    Data Type

    Description

    GroupNameString

    Name of the group from which the user is to be deleted.

     

     

    The following SOAP example shows the parameters that you can pass to this call:

    Code Block
    languagexml
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://webservices.web.mi.hof.com/">
       <soapenv:Header/>
       <soapenv:Body>
          <web:remoteAdministrationCall>
             <arg0>
               <loginId>admin@yellowfin.com.au</loginId>
               <password>test</password>
               <orgId>1</orgId>
               <function>DELUSERFROMGROUP</function>
               <person>
               	<userId>binish.sheikh@yellowfin.com.au</userId>
               </person>
               <group>
               	<groupName>Administrators</groupName>
               </group>                     
             </arg0>
          </web:remoteAdministrationCall>
       </soapenv:Body>
    </soapenv:Envelope>

     

    Response Parameters

    The response returned will contain these parameters:

    Response Element

    Data Type

    Description

    StatusCode

    String

    Status of the web service call. Possible values include:

    • SUCCESS
    • FAILURE

     

     

    The service will return the below response, according to our SOAP example:

    Code Block
    languagexml
    <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
       <S:Body>
          <ns2:remoteAdministrationCallResponse xmlns:ns2="http://webservices.web.mi.hof.com/">
             <return>
                <errorCode>0</errorCode>
                <messages>Successfully Authenticated User: admin@yellowfin.com.au</messages>
                <messages>Web Service Request Complete</messages>
                <sessionId>ed4f6504e415411875b2c359b9384cf9</sessionId>
                <statusCode>SUCCESS</statusCode>
             </return>
          </ns2:remoteAdministrationCallResponse>
       </S:Body>
    </S:Envelope>

     

     

    Instructions

    See below for step-by-step instructions on how to perform this call, using a Java example:

    Expand
    titleStep-by-step instructions
    • Start with a basic request for this function:

      Code Block
      languagejava
      AdministrationServiceRequest rsr = new AdministrationServiceRequest();
      
      rsr.setLoginId("admin@yellowfin.com.au");
      rsr.setPassword("test");
      rsr.setOrgId(1);
      
      rsr.setFunction("DELUSERFROMGROUP");



    • You may specify a client organization to search for the group within it. But if not included, then the group will be searched in the default (that is, the primary) organization.

      Code Block
      languagejava
      rsr.setOrgRef("org1");
      



    • Set parameters to identify a user who is to be deleted:

      Code Block
      languagejava
      AdministrationPerson ap = new AdministrationPerson();
      ap.setUserId("john.smith@yellowfin.com.au");  	// must be an existing Yellowfin user
      
      rsr.setPerson(ap);
      

     

    • Set parameters for the group from which the user is to be deleted:

      Code Block
      languagejava
      AdministrationGroup group = new AdministrationGroup();
      group.setGroupName("Administrators");			//must be an existing user group
      
      rsr.setGroup(group);

     

    • Once the request is configured, perform the call:

      Code Block
      languagejava
      AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);
      

      Initialize the Administration web service. Click here to learn how to do this. 

     

    • The response returned will contain these parameters:

      Response Element

      Data Type

      Description

      StatusCode

      String

      Status of the web service call. Possible values include:

      • SUCCESS
      • FAILURE

     

     

    Complete Example

    Below is a full example of this function. To use it for yourself, carry out the following the steps:

    1. Copy the code and save it as ws_deluserfromgroup.jsp.
    2. Put the file in the root folder: Yellowfin/appserver/webapps/ROOT.
    3. Adjust the host, port, admin user, user to remove, and the group name according to your environment.
    4. Run http://<host>:<port>/ws_deluserfromgroup.jsp from your Internet browser.

     

    Code Block
    languagejava
    themeEclipse
    <%            
    /*              ws_ deluserfromgroup.jsp               */
    %>
    <%@ page language="java" contentType="text/html; charset=UTF-8" %>
    <%@ page import="com.hof.util.*, java.util.*, java.text.*" %> 
    <%@ page import="com.hof.web.form.*" %>
    <%@ page import="com.hof.mi.web.service.*" %>
    <%
    AdministrationServiceService s_adm = new AdministrationServiceServiceLocator("localhost",8080, "/services/AdministrationService", false);        // adjust host and port number
    
    AdministrationServiceSoapBindingStub adminService = (AdministrationServiceSoapBindingStub) s_adm.getAdministrationService();
    
    AdministrationServiceRequest rsr = new AdministrationServiceRequest();
    
    rsr.setLoginId("admin@yellowfin.com.au");          // provide your Yellowfin web services admin account
    rsr.setPassword("test");                           // set the password of the above account
    
    rsr.setOrgId(1);
    
    rsr.setFunction("DELUSERFROMGROUP");
    
    
    //Specify the client org (if omitted, the default (primary) org groups will be searched):
    
    
    rsr.setOrgRef("org1");
    
    
    //Specify a user to remove from a group:
    
    
    AdministrationPerson ap = new AdministrationPerson();
    ap.setUserId("john.smith@yellowfin.com.au");  		// must be an existing Yellowfin use
    
    rsr.setPerson(ap);
    
    
    //Specify which group to remove user from:
    
    AdministrationGroup group = new AdministrationGroup();
    group.setGroupName("Administrators");                 // must be an existing user group
    
    rsr.setGroup(group);
    
    AdministrationServiceResponse rs = adminService.remoteAdministrationCall(rsr);
    
    
    if ("SUCCESS".equals(rs.getStatusCode()) ) {
    	out.write("Success");
    } else {
    	out.write("Failure");
    	out.write(" Code: " + rs.getErrorCode());
    }
    %>