I misunderstood then. I thought you wanted to see if the user was a member of Administrators? The code returns all active directory groups the domain user belongs to.
>
>Not without more research into the active directory API which I don't have the extra time for right now. I tend to just go with what works and the code I posted works. I would certainly be interested if you find alternatives - please post them! :o)>
>Tracy,
>
>Don't get me wrong - I highly appreciate your code posting. :) I just couldn't easily identify from your code where I could accomplish the same admin rights check..?
>
>Laterness,
>Jon
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"