Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Exchange
2000.active.directory
2000.admin
2000.announcements
2000.app.conversion
2000.applications
2000.clients
2000.clustering
2000.connectivity
2000.development
2000.documentation
2000.general
2000.information.store
2000.interop
2000.kms
2000.misc
2000.protocols
2000.realtime.collabo.
2000.setup
2000.transport
2000.win2000
admin
application.conversion
applications
clients
clustering
connectivity
design
development
misc
mobility
setup
tools
  
 
date: Tue, 29 Jan 2008 13:53:26 -0500,    group: microsoft.public.exchange.tools        back       


finding users mailbox access in AD   
Not sure if this is the right place to ask a question.... if not sorry...

My management wants me to find out details of a user. Details would include 
what all mailboxes he has rights on and is a delegate on.. I tried to search 
online, but could not find anything on this..
I know we could go to individually to mailboxes and find if the user has 
access...but is there a way to find out what access rights the user has? and 
to what mailboxes?

Thx in advance for help
date: Tue, 29 Jan 2008 13:53:26 -0500   author:   Sam

Re: finding users mailbox access in AD   
btw...its a exchange 2003, win2k3 environment...

"Sam"  wrote in message 
news:OJGd8gqYIHA.4880@TK2MSFTNGP03.phx.gbl...
> Not sure if this is the right place to ask a question.... if not sorry...
>
> My management wants me to find out details of a user. Details would 
> include what all mailboxes he has rights on and is a delegate on.. I tried 
> to search online, but could not find anything on this..
> I know we could go to individually to mailboxes and find if the user has 
> access...but is there a way to find out what access rights the user has? 
> and to what mailboxes?
>
> Thx in advance for help
>
date: Tue, 29 Jan 2008 13:59:30 -0500   author:   Sam

Re: finding users mailbox access in AD   
I use this vbscript - just put the details in the config section and run it.

' This script was originally published in the Exchange Cookbook,
' (http://www.exchangebookcook.com). Written by Paul Robichaux,
' Missy Koslosky, and Devin Ganger. Redistributed with permission
' of the publisher, O'Reilly & Associates.

' This code lists the delegates, if any, for the selected
' mailbox.
' ------ SCRIPT CONFIGURATION ------
 strDCName = "<server name here>"
 strUserName = "cn=Joe Bloggs, CN=Users, dc=company, dc=com"
 ' e.g. "cn=Joe Bloggs, CN=Users, dc=company, dc=com"
 ' ------ END CONFIGURATION ---------

' find the target user
 strQuery = "LDAP://" & strDCName & "/" & strUserName
 Set theUser = GetObject(strQuery)
 WScript.echo "Mailbox " & strUserName
 On Error Resume Next

 delegateList = theUser.Get("publicDelegates")
 If Err.Number <> -2147463155 Then
  wscript.echo "has these delegates:"
     For Each Desc In delegateList
         WScript.Echo "  " & desc
     Next
 Else
     WScript.Echo "+ Has no delegates"
 End If

 delegateList = theUser.Get("publicDelegatesBL")

 If Err.Number <> -2147463155 Then
     wscript.echo "+ is a delegate of"
     For Each Desc In delegateList
         WScript.Echo "  " & desc
     Next
 Else
     WScript.Echo "+ Not a delegate for anyone"
 End If


"Sam"  wrote in message 
news:OJGd8gqYIHA.4880@TK2MSFTNGP03.phx.gbl...
> Not sure if this is the right place to ask a question.... if not sorry...
>
> My management wants me to find out details of a user. Details would 
> include what all mailboxes he has rights on and is a delegate on.. I tried 
> to search online, but could not find anything on this..
> I know we could go to individually to mailboxes and find if the user has 
> access...but is there a way to find out what access rights the user has? 
> and to what mailboxes?
>
> Thx in advance for help
>
date: Wed, 30 Jan 2008 10:38:08 -0000   author:   Graeme am

Re: finding users mailbox access in AD   
Thanks Graeme,
So for this script I would have to run it against each server to find the 
details of the mailboxes the user has rights/delegate permissions?
I have like more than 50 maibox servers...

Thx

"Graeme" <graeme@newsgroup.nospam> wrote in message 
news:uZoJ1wyYIHA.3400@TK2MSFTNGP03.phx.gbl...
>I use this vbscript - just put the details in the config section and run 
>it.
>
> ' This script was originally published in the Exchange Cookbook,
> ' (http://www.exchangebookcook.com). Written by Paul Robichaux,
> ' Missy Koslosky, and Devin Ganger. Redistributed with permission
> ' of the publisher, O'Reilly & Associates.
>
> ' This code lists the delegates, if any, for the selected
> ' mailbox.
> ' ------ SCRIPT CONFIGURATION ------
> strDCName = "<server name here>"
> strUserName = "cn=Joe Bloggs, CN=Users, dc=company, dc=com"
> ' e.g. "cn=Joe Bloggs, CN=Users, dc=company, dc=com"
> ' ------ END CONFIGURATION ---------
>
> ' find the target user
> strQuery = "LDAP://" & strDCName & "/" & strUserName
> Set theUser = GetObject(strQuery)
> WScript.echo "Mailbox " & strUserName
> On Error Resume Next
>
> delegateList = theUser.Get("publicDelegates")
> If Err.Number <> -2147463155 Then
>  wscript.echo "has these delegates:"
>     For Each Desc In delegateList
>         WScript.Echo "  " & desc
>     Next
> Else
>     WScript.Echo "+ Has no delegates"
> End If
>
> delegateList = theUser.Get("publicDelegatesBL")
>
> If Err.Number <> -2147463155 Then
>     wscript.echo "+ is a delegate of"
>     For Each Desc In delegateList
>         WScript.Echo "  " & desc
>     Next
> Else
>     WScript.Echo "+ Not a delegate for anyone"
> End If
>
>
> "Sam"  wrote in message 
> news:OJGd8gqYIHA.4880@TK2MSFTNGP03.phx.gbl...
>> Not sure if this is the right place to ask a question.... if not sorry...
>>
>> My management wants me to find out details of a user. Details would 
>> include what all mailboxes he has rights on and is a delegate on.. I 
>> tried to search online, but could not find anything on this..
>> I know we could go to individually to mailboxes and find if the user has 
>> access...but is there a way to find out what access rights the user has? 
>> and to what mailboxes?
>>
>> Thx in advance for help
>>
>
>
date: Wed, 30 Jan 2008 13:45:20 -0500   author:   Sam

Re: finding users mailbox access in AD   
Hi Sam

No... the server you need to point at is just one of your DCs. Basically 
you're just querying user attributes that happen to be exchange attributes. 
Sorry that's not clear in what I pasted in.

Cheers

Graeme


"Sam"  wrote in message 
news:u4D4GB3YIHA.5900@TK2MSFTNGP02.phx.gbl...
> Thanks Graeme,
> So for this script I would have to run it against each server to find the 
> details of the mailboxes the user has rights/delegate permissions?
> I have like more than 50 maibox servers...
>
> Thx
>
> "Graeme" <graeme@newsgroup.nospam> wrote in message 
> news:uZoJ1wyYIHA.3400@TK2MSFTNGP03.phx.gbl...
>>I use this vbscript - just put the details in the config section and run 
>>it.
>>
>> ' This script was originally published in the Exchange Cookbook,
>> ' (http://www.exchangebookcook.com). Written by Paul Robichaux,
>> ' Missy Koslosky, and Devin Ganger. Redistributed with permission
>> ' of the publisher, O'Reilly & Associates.
>>
>> ' This code lists the delegates, if any, for the selected
>> ' mailbox.
>> ' ------ SCRIPT CONFIGURATION ------
>> strDCName = "<server name here>"
>> strUserName = "cn=Joe Bloggs, CN=Users, dc=company, dc=com"
>> ' e.g. "cn=Joe Bloggs, CN=Users, dc=company, dc=com"
>> ' ------ END CONFIGURATION ---------
>>
>> ' find the target user
>> strQuery = "LDAP://" & strDCName & "/" & strUserName
>> Set theUser = GetObject(strQuery)
>> WScript.echo "Mailbox " & strUserName
>> On Error Resume Next
>>
>> delegateList = theUser.Get("publicDelegates")
>> If Err.Number <> -2147463155 Then
>>  wscript.echo "has these delegates:"
>>     For Each Desc In delegateList
>>         WScript.Echo "  " & desc
>>     Next
>> Else
>>     WScript.Echo "+ Has no delegates"
>> End If
>>
>> delegateList = theUser.Get("publicDelegatesBL")
>>
>> If Err.Number <> -2147463155 Then
>>     wscript.echo "+ is a delegate of"
>>     For Each Desc In delegateList
>>         WScript.Echo "  " & desc
>>     Next
>> Else
>>     WScript.Echo "+ Not a delegate for anyone"
>> End If
>>
>>
>> "Sam"  wrote in message 
>> news:OJGd8gqYIHA.4880@TK2MSFTNGP03.phx.gbl...
>>> Not sure if this is the right place to ask a question.... if not 
>>> sorry...
>>>
>>> My management wants me to find out details of a user. Details would 
>>> include what all mailboxes he has rights on and is a delegate on.. I 
>>> tried to search online, but could not find anything on this..
>>> I know we could go to individually to mailboxes and find if the user has 
>>> access...but is there a way to find out what access rights the user has? 
>>> and to what mailboxes?
>>>
>>> Thx in advance for help
>>>
>>
>>
>
>
date: Thu, 31 Jan 2008 08:44:50 -0000   author:   Graeme am

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us