Integrations and APIs for Service

Get Involved. Join the Conversation.

Topic

    Jared
    Access denied using relogin?Answered
    Topic posted July 21, 2009 by Jared Gold Medal: 3,500+ Points, last edited October 29, 2011 
    1352 Views, 9 Comments
    Title:
    Access denied using relogin?
    Content:

    I am using relogin and getting an access denied error when trying to use select. Here is the code:

     

     

    rnObjFactory = new RNOWObjectFactory(globalContext.InterfaceURL + "xml_api/soap_api.php"); bool loggedIn = rnObjFactory.relogin(globalContext.InterfaceName, globalContext.Login);

     

     

    this returns true.

     

    Then I get "access denied" in response to this:

     

     

    object ret = rnObjFactory.select("SELECT MAX(org_id) FROM contacts", RNOWUtil.SQLReturnType.INTEGER);

     

    RightNow Connect and Transient Login are both enabled for the profile. This is for a May 09 version.

     

    Tell me what I am missing.

     

    -Jared

     

    Best Comment

    Ryan McCullough

    I would recommend posting this in the Idea Lab or contacting your account manager to ask that this be added as a feature enhancement to the product.

    Comment

     

    • Ryan McCullough
      Jared, I just checked this on a May '09 site and it worked. Are you absolutely sure that the username passed to relogin() from globalContext.Login is associated with a profile which has RightNow Connect permissions in the profile?
    • Jared

      Yes, I am sure. What I am not so sure is whether RightNow Connect is enabled for the site itself. Is there a way to know this programmatically or through admin interface? We are working with a client who may not have this enabled yet, and in the future we may encounter this with other clients. It would be nice if I could verify whether this is the problem without needing to contact sales rep.

       

      By the way, I just checked, and the code works fine in our own May 09 site also. It is not working for husqvarna2.custhelp site.

       

      Thanks for a quick response.

       

      -Jared

       

    • Ryan McCullough

      There is another barrier that needs to be enabled, but customers cannot enable it themselves. You will need to speak with your account representative about getting RightNow Connect enabled on your site. 

    • Jared

      That part is clear. What is not clear to me is _whether_ RightNow Connect is enabled. It is enabled in our development site, but may not be for our customer site. The message "Access Denied" gives me no clarity on this. The error message ought to say "RightNow Connect is not enabled."

       

      Presently, to know whether it is enabled, I talk to my product manager who talks to the customer who talks to the account rep, who confirms one way or the other. This process, via email, is taking days. Is there a way I can know the answer to the question within minutes, programmatically? Is there a database field I can check?

       

      -Jared

       

    • Ryan McCullough
      What is the site & interface name?
    • Jared
      http://husqvarna2.custhelp.com/cgi-bin/husqvarna2.cfg
    • Ryan McCullough
      I just looked and II_CONNECT_ENABLED is not turned on for the husqvarna2 interface. It is enabled on the husqvarna interface.
    • Jared

      Ryan,

       

      Thank you for your help on this!

       

      I was hoping there was a solution I could use in the future, but I expect that we just need to clarify this configuration option for our customers before development testing begins.

       

      -Jared

       

    • Ryan McCullough

      I would recommend posting this in the Idea Lab or contacting your account manager to ask that this be added as a feature enhancement to the product.