User.IsInRole -> I do not want current user but all users

Discussion in 'ASP .Net' started by Peter Bons, Mar 31, 2006.

  1. Peter Bons

    Peter Bons Guest

    Hi,

    I have a question, I know that I can determine whether an user belongs to a
    certain AD group.
    But what if I want to check for a serie of users?

    I could use the DirectoryServices classes but that's not that simple to
    code.
    Would it not be possible to create a new User object representing a user so
    I can user the IsInRole method?
    If so, how? Or is there another easy way to check if a user belongs to a
    certain AD group?

    FYI: using .Net 1.1/VS2003 + impersonation/windows authentication

    Thanx,
    Peter
    Peter Bons, Mar 31, 2006
    #1
    1. Advertising

  2. Peter but you can just use IsinRole for that
    Check out my blog on this at:-
    http://spaces.msn.com/naijacoder/
    Patrick

    "Peter Bons" <> wrote in message
    news:Osr$...
    > Hi,
    >
    > I have a question, I know that I can determine whether an user belongs to
    > a certain AD group.
    > But what if I want to check for a serie of users?
    >
    > I could use the DirectoryServices classes but that's not that simple to
    > code.
    > Would it not be possible to create a new User object representing a user
    > so I can user the IsInRole method?
    > If so, how? Or is there another easy way to check if a user belongs to a
    > certain AD group?
    >
    > FYI: using .Net 1.1/VS2003 + impersonation/windows authentication
    >
    > Thanx,
    > Peter
    >
    Patrick.O.Ige, Mar 31, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?SnVsaWE=?=

    HttpContext.Current.User.IsInRole

    =?Utf-8?B?SnVsaWE=?=, Dec 12, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    8,567
    Karl Seguin
    Dec 12, 2005
  2. Randy
    Replies:
    1
    Views:
    643
    Joe Kaplan \(MVP - ADSI\)
    Sep 2, 2004
  3. petersonrj
    Replies:
    0
    Views:
    110
    petersonrj
    Sep 17, 2004
  4. Dominick Baier
    Replies:
    2
    Views:
    181
    Patrick.O.Ige
    Oct 21, 2004
  5. Julia

    HttpContext.Current.User.IsInRole

    Julia, Apr 6, 2005, in forum: ASP .Net Security
    Replies:
    1
    Views:
    143
    Joe Kaplan \(MVP - ADSI\)
    Apr 6, 2005
Loading...

Share This Page