Highlighted
Anonymous_User Absent Member.
Absent Member.
1667 views

Get proxied user name

Hello,

I try to get the information of the current proxied account which is in use by the GroupWise Client.

For instance I got proxy rights on 2 different mailboxes.
- User1 (me)
- User2 (proxy1)
- User3 (proxy2)

I tried to get the Information from the Object API through ProxyAccounts and receive a AccountsCollection. This collection gets filled, as soon as you are loggin into a proxy account.

But this information is not the information I need. This AccountsCollection can't tell me the currently used proxy account.
Ofcourse this just works fine for ONE proxied mailbox. (When you proxy from User1 to User2, the Collection will be filled with JUST User2.)
But when the User1 now proxies the Mailbox of User3, the AccountsCollection got two entries. How can I determine which of the two proxied Useraccounts is the account currently in use?

So, it's not possible to say, which of the Accounts in the AccountsCollection is the currently proxied user.


In a Forum I read, that this can maybe be solved with the ClientState from the C3PO API.
So, I got my C3PO Object and try to access the ClientState. It should be something like: ClientState.Owner.Email (or something semilar to Email).
But the ClientState Object got no ".Owner"... and later on they wrote in the forum, that I should try it with Token API...


So, I kept on with reading and read about proxy rights and gave TokenAPI a try:
- "EnvUserID()" just returns the "User1"
- "EnvPrefFullName()" returns the full name of User1..


Later on in a different Forum I read, that Token can't solve this, and I should give Object API a try...

Here by question:
What is the working solution to this Problem? Or is GroupWise not able to give these information by API?

Thanks in advance for your Help!
Labels (1)
0 Likes
4 Replies
gkohio Absent Member.
Absent Member.

Re: Get proxied user name

look at ProxyHistory...

re:
oProxies = oAcct.Parent.ProxyHistory
For Each oProxy In oProxies
ListBox1.Items.Add(oProxy.EmailAddress)
Next
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Get proxied user name

Nope! The ProxyHistory just tells me on which account I already logged in with Proxyrights.
But this still doesn't deliver the information I need. The List is static. The order is not the order of the last proxy log in. So, this ProxyHistory is useless, since it can't help with this particular problem.
ProxyHistory could be useful, IF it would always set the last proxyhistory element to the last proxied username. But the list is static and so completly useless.

So, any GW Pro's here who could tell me how/if this problem is solvable with GW?
Thanks in advance
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Get proxied user name

Hi.

Never needed this info outside a C3PO, so this is the only thing I have at
the moment is (token api).

vCommander.execute('EnvUserID(1;1)',Str1); // current
vCommander.execute('EnvUserID(0;1)',str2); // original login

If Str1<>Str2 then you are in a proxy mailbox.

More info:
http://www.novell.com/developer/ndk/groupwise/groupwise_tokens.html

Hans



"KRathmann" <KRathmann@no-mx.forums.novell.com> schreef in bericht
news:KRathmann.5p9idb@no-mx.forums.novell.com...
>
> Nope! The ProxyHistory just tells me on which account I already logged
> in with Proxyrights.
> But this still doesn't deliver the information I need. The List is
> static. The order is not the order of the last proxy log in. So, this
> ProxyHistory is useless, since it can't help with this particular
> problem.
> ProxyHistory could be useful, IF it would always set the last
> proxyhistory element to the last proxied username. But the list is
> static and so completly useless.
>
> So, any GW Pro's here who could tell me how/if this problem is solvable
> with GW?
> Thanks in advance
>
>
> --
> KRathmann
> ------------------------------------------------------------------------
> KRathmann's Profile: http://forums.novell.com/member.php?userid=33107
> View this thread: http://forums.novell.com/showthread.php?t=462408
>



0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Get proxied user name

Hello Hans,

thank you for the EnvUserID hint with the two parameters. It solved my problem.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.