/ Forums / Advansys Formativ / Creating Solutions with Formativ / Setting proxy access rights if proxied to another account

  • Creator
    Topic
  • #4320
    frma55
    Participant

    Hi, i have the following problem:
    i like to get a list of setup proxy users, add/remove proxy users and set/remove proxy access rights for this users. This works fine for the root account (with the groupwise account object) with the AccountRightsCollection.

    But this does not work if i proxied to another account (manual in the groupwise client) and then start my formativ script. In that case the AccountRightsCollection give me only one AccountRights object with the rights the root account has to the proxied account.
    I tried to use the client account object, but there are the same limitations. I tried to proxy to that user with GroupWise.Account.parent.proxy(UserID), but also the same limitations.

    How is it possible in case of proxied to another account to get a full list of the setup proxy users for the proxied account and change this list or the proxy rights of that users?? This is also possible manually in groupwise client and so it should also go with formativ, or isn’t it so??

    Thanks,
    HERBY

  • Author
    Replies
  • #7810
    Support 3
    Participant

    Use the Client.clientstate.currentaccount to access the active GroupWise account. You can manually proxied to another account or use the proxy() method prior to access the currentaccount. GroupWise.account will gives you access to the root account.

    See the example below:

      
      dim oGWAccount
    
      set oGWAccount = Client.clientstate.currentaccount
      msgbox "AccountRightsCollection: " & oGWAccount.AccountRights.Count
    
      set oGWAccount = nothing
    

    Hope this helps.

    Regards,
    Advansys Support

    #7811
    frma55
    Participant

    The problem with that methode is, that if i proxied to another user and start my script, i dont’t get the AccountRightsCollection set of all users, which have proxy access to that user.

    It will return only one AccountRights object with the rights the root account has to the proxied account.

    HERBY

    #7809
    Support 3
    Participant

    Not sure about any Object API limitation when proxied to another account. You can post GroupWise Object API related questions into the following forum:
    http://groups.google.com.au/group/novell.devsup.gwobjapi?hl=en

    Have you looked at our Enterprise Proxy (http://www.advansyscorp.com/formativ_sol_enterprise_proxy.htm) which allows you to manage proxy access rights?

    Hope this helps.

    Regards,
    Advansys Support

    #7812
    frma55
    Participant

    The Object API limitation works as documented – so this is no question.

    The Enterprise Proxy sounds good, but is not exactly this, what i’m searching for.

    I try to solve my problem with a trusted application.

    #7813
    Support 3
    Participant

    Hope the trusted application solve your problem. If you have any further questions, please do not hesitate to contact us.

    Regards,
    Advansys Support

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.