[prev in list] [next in list] [prev in thread] [next in thread]
List: ms-dcom
Subject: Re: How to use IsUserInRole from VB
From: Tahsin Alam <tahsinalam () YAHOO ! COM>
Date: 2001-09-28 18:45:48
[Download RAW message or body]
Here is the relevant section from MSDN documentation for IsUserInRole:Parts of \
Syntax [Visual Basic] object
An object with a reference to a SecurityCallContext object.
User
A Variant representing the user ID whose role membership will be checked.
role
A string expression representing the name of the role whose membership will be \
checked. Tahsin Alam <tahsinalam@YAHOO.COM> wrote: Hi:
I am trying to use IsUserInRole(user, rolename) from Visual Basic, and don't know \
what to pass in as the "user".
I want to know the role of the Original Caller. I tried passing in the name of the \
original caller (using GetSecurityCallContext("OriginalCaller")("AccountName")), and \
also the SID (GetSecurityCallContext("OriginalCaller")("SID")) and the method returns \
true for all roles.
tahsin
---------------------------------
Do You Yahoo!?
Listen to your Yahoo! Mail messages from any phone with Yahoo! by Phone.
----------------------------------------------------------------
Users Guide http://discuss.microsoft.com/archives/mailfaq.asp
contains important info. Save time, search the archives at
http://discuss.microsoft.com/archives/index.html .
To unsubscribe, mailto:DCOM-signoff-request@DISCUSS.MICROSOFT.COM
---------------------------------
Do You Yahoo!?
Listen to your Yahoo! Mail messages from any phone with Yahoo! by Phone.
----------------------------------------------------------------
Users Guide http://discuss.microsoft.com/archives/mailfaq.asp
contains important info. Save time, search the archives at
http://discuss.microsoft.com/archives/index.html .
To unsubscribe, mailto:DCOM-signoff-request@DISCUSS.MICROSOFT.COM
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic