List folders specific user has permission

Hi, i am from Spain, excuse my bad English
I have a 2008 r2 file server with more than 100 folders and more than 500 subfolders
I want to list folders and subfolders that specific user has permissions
Is this posible?
How?
Thanks in advantage

Hello,
I have developped one script powershell for my customers. I have uploaded this script on the technet Gallery.
The link for download it's here
https://gallery.technet.microsoft.com/Get-a-list-with-the-share-811d1221

Similar Messages

  • SharePoint C# Get list of sites on which user has permission (Read, Contribute, Owner, Admin, Visitor)

    HI,
    I wants to get list of sites on which user has permission, all permission name like (read, visitor, contribute, owner)
    using (SPSite oSite = new SPSite(SPContext.Current.Site.Url))
    foreach (SPWeb oWeb in oSite.RootWeb.GetSubwebsForCurrentUser())
    permission = string.Empty;
    foreach (SPGroup group in oWeb.Groups)
    foreach (SPUser u in group.Users)
    if (u.Name == (userName))
    foreach (SPRole role in u.Roles)
    permission += role.Name.ToString() + ", ";
    } // Taking All Permission details of user
    permission = " [" + permission.TrimEnd(", ".ToCharArray()) + "]";
    my final string variable will have values like [Read, Visitor] or [Read] or [visitor, Read]
    I wants to have all permission names and also geting error on u.Roles [Roles is absolute now],
     Help me to get permission by using SPRoleDefination etc
    SPRoleDefinitionCollectionroleDefinitions
    = oWeb.RoleDefinitions;
    SPRoleDefinitionroleDefinition
    foreach(SPRoleAssignmentroleAssigment
    inoWeb.RoleAssignments)
     Thanks
    Praveen

    Depending on how large your farm is and how many webapplications / site collections you need to enumerate to build this list, you might be better off using search to get the list of sites/webs that the user has access to (search results are security trimmed).
    You could then enumerate just the list of sites returned to determine the exact permissions.
    E.g. Code for getting a list of sites the user has access to:
    var ssaProxy = (SearchServiceApplicationProxy)SearchServiceApplicationProxy.GetProxy(SPServiceContext.GetContext(SPContext.Current.Site));
    var keywordQuery = new KeywordQuery(ssaProxy);
    keywordQuery.RowLimit = 200;
    keywordQuery.SelectProperties.Clear();
    keywordQuery.SelectProperties.Add("Title");
    keywordQuery.SelectProperties.Add("Url");
    keywordQuery.ResultsProvider = SearchProvider.Default;
    keywordQuery.QueryText = String.Format("contentclass:STS_Site OR contentclass:STS_Web");
    keywordQuery.ResultTypes |= ResultType.RelevantResults;
    ResultTableCollection searchResults;
    searchResults = keywordQuery.Execute();
    if (searchResults.Exists(ResultType.RelevantResults))
    var searchResult = searchResults[ResultType.RelevantResults];
    var results = new DataTable { TableName = "SearchResults" };
    results.Load(searchResult, LoadOption.OverwriteChanges);
    if (results.Rows.Count > 0)
    var resultsText = new StringBuilder();
    foreach (DataRow dataRow in results.Rows)
    var urlToWeb = dataRow["Url"] as String;
    //Perform your checking to determine the exact permissions
    Regards, Matthew
    MCPD | MCITP
    My Blog
    Please remember to click "Mark As Answer" if a post solves your problem or "Vote As Helpful" if it was useful.
    I just added a webpart to the TechNet Gallery that allows administrative users to upload, crop and format user profile photos. Check it out here:
    Upload and Crop User Profile Photos

  • Function when UserId is entered returns # of folders a user has for year 07

    I need help create a function that will count the number of folders a user has. When you enter a userid the result should show a count of folders that particuler user has been assigned in 2007.
    The tables with the information are
    1. VALIDUSER has userid
    2. FOLDERPROCESS has assigned user
    3. FOLDER has folderyear.
    userid VARCHAR2(128)
    assigneduser VARCHAR2(128)
    folderyear VARCHAR2(4)

    Duplicate.
    The other copy of this question has been answered.

  • How to Find mailboxes a specific user has full access to

    Hi, 
    I have been searching all the threads but all i am getting is user mailbox is accessible to following users. I run this command:
    Get-Mailbox -resultsize unlimited | Get-MailboxPermission | Where {(!$_.isinherited) -and ($_.user.SecurityIdentifier -ne "S-1-5-10") -and  ($_.accessrights -contains "fullaccess")  } | Select Identity,User
    It is taking so much time as we have 20K mailboxes. Then i tried this:
    Get-Mailbox -server exdm01 -resultsize unlimited | Get-MailboxPermission | Where {(!$_.isinherited) -and ($_.user.SecurityIdentifier -ne "S-1-5-10") -and  ($_.accessrights -contains "fullaccess")  } | Select Identity,User
    It gives me list of those users who have access to mailboxes. But what if i want to see user_A is accessing which mailboxes. we
    need to find out which mailboxes user has FULL MAILBOX ACCESS to NOT which users can access this user's mailbox. I hope you will understand, i DONT want the list which MANAGE FULL ACCESS PERMISSION option gives in GUI, but i WANT vice-versa. 
    We migrated 100 users to different domain, now i want to know these users' association with others' mailboxes. 
    Hasan

    Please check with this
    Get-Mailbox -Server "SERVERNAME" -resultsize "Unlimited" | Get-MailboxPermission | where { ($_.AccessRights -eq "FullAccess") -and ($_.User -like "DOMAIN\TESTUSER") -and ($_.IsInherited -eq $false) -and -not ($_.User -like "NT AUTHORITY\SELF") } | ft User, @{Name="Identity";expression={($_.Identity -split "/")[-1]}} -Autosize
    Replace "DOMAIN\TESTUSER" with "Yourdomain\Yourusername" to check,  which will list the users which testuser has FullAccessPermission on.
    @Amit
    Apologize for the duplicate posting.
    Thanks, MAS
    Please mark as helpful if you find my comment helpful or as an answer if it does answer your question. That will encourage me - and others - to take time out to help you.

  • Showing process in tracking list for specific user

    Hello
    I have a process in which there are several Assign Tasks operations for users to fill out forms.
    I want a specific user of my domain to be able to review every process instance that gets initiated, but I haven't figured out how to accomplish that without assigning the task to him. I've been playing with Task Access Control List and Delegation and Consultation properties, adding the specific user and group to the settings, but still can't view the processes in his tracking list.
    Is there an option or workaround for his Tracking list to get populated?
    Thank you

    You can create Custom Search Templates to search for certain process instances initiated by
    all users.
    See the help manual http://LOCALHOST:8080/lc_admin_en/wwhelp/wwhimpl/js/html/wwhelp.htm?href=000373.html for more details
    Nith

  • List permissions a user has on shared mailboxes

    <#
    .SYNOPSIS
    Retrieves all permissions a mailbox has access to in the Organizational Unit 'domain/Accounts/Shared'.
    .DESCRIPTION
    This script will query all Mailbox permissions and Active Directory permissions a mailbox has on another mailbox.
    Active Directory such as 'Send-As'.
    .PARAMETER User
    The Display Name, Email address, GUID, Alias.
    .EXAMPLE
    .\ListAllMailboxesAUserHasAccessTo -User 'JSmith'
    This example will retrieve all mailboxes that Jsmith has full access to.
    #>
    param(
         [String]$User
    Get-Mailbox -resultsize Unlimited -RecipientTypeDetails sharedmailbox  |Get-MailboxPermission |
    Where-Object {($_.AccessRights -eq "FullAccess") -and ($_.User -like $User) -and ($_.IsInherited -eq $false) -and ($_.User -notlike 'NT Authority\Self')} |
    Format-Table Identity -Verbose
    This works only if I put user as "domain\userid. How can I just put the DN,Alias,UPN in the $user parameter?
    Thanks,
    Alexis
          

    Hello Alexis,
    Conver it to domain\userid on the fly if you put DN, Alias of upn...
    $ConvertedUser = (get-mailbox $user).userprincipalname.split("@")[1].split(".")[0] + "\" + (get-mailbox $user).userprincipalname.split("@")[0]
    Get-Mailbox -resultsize Unlimited -RecipientTypeDetails sharedmailbox  |Get-MailboxPermission | 
    Where-Object {($_.AccessRights -eq "FullAccess") -and ($_.User -like $ConvertedUser) -and ($_.IsInherited
    -eq $false) -and ($_.User -notlike 'NT Authority\Self')} |
    Format-Table Identity -Verbose
    Blog |
    Get Your Exchange Powershell Tip of the Day from here

  • How to check whether a user has permission to create term in Taxonomy Term Store using CSOM ?

    I want to check programmatically whether the current user is a Term Store Administrator or not.

    I am not sure how Tomcat handles this, but you need to use two-way (mutual authentication) request but not enforce SSL between Tomcat and the client browser. This will make the browser prompt the user for the cert they want to send. Then you'll need to tackle the other part of your problem, getting the correct content displayed depending on whether the user sent a cert or not. I'm even less help there than I was on the first part of your question.
    So, yeah - good luck with that
    Lee

  • Getting list of reports a user has access to

    Hi,
    I'm new to BO and have been trying to figure out a way to get a list of reports a specific user has access to. In reading the documentation in the SDK it appears the only way to do this is to get a list of all reports, loop through them, getting the ObjectPrincipals, looping through that then checking if the objectPrincipal.Name == user.Title.
                foreach (InfoObject report in infoObjects)
                    SecurityInfo securityInfo = report.SecurityInfo;
                    ObjectPrincipals objectPrincipals = securityInfo.ObjectPrincipals;
                    foreach (ObjectPrincipal objectPrincipal in objectPrincipals)
                        if (objectPrincipal.Name != user.Title) continue;
                        if (!sortedList.Contains(report.ID))
                            sortedList.Add(report.ID, report.Title);
    This works, but takes over 90 seconds to generate the list of reports I want, as it is looping through all reports in the CMS (120). My logic is telling me there must be a better way to do this, I just haven't found the answer. It appears that calling securityInfo.ObjectPrincipals is what is taking the most time.
    Advice, thoughts, suggestions are all appreciated.
    Thanks
    James

    Ok, logging in as a user and getting a list of reports is working well and fast. But how would you recommend getting a list of all users and the reports they are assigned to. Is there a query for that using the relationship functions of Query Builder?
    Thanks
    James

  • A list of all calendars a user has access to

    Hi All, 
    My situation is as follows, I would like to create a report that will provide me with a list of mailbox calendars where a specific user has permissions and what permissions they have. A simple task, but one that keeps delivering me a roadblock. I haven't started
    the second part as I keep hitting this wall. 
    Heres what I've come up with so far: 
    get-mailbox -resultsize unlimited | get-mailboxfolderpermission "${$_.Name}:\Calendar" | Where {$_.User -like "Some User Name"}
    For each mailbox in $mailboxes it spits out the following error: 
    The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the parameters that take pipeline input.
        + CategoryInfo          : InvalidArgument: (MailboxName:PSObject) [Get-MailboxFolderPermission], ParameterBindingException
        + FullyQualifiedErrorId : InputObjectNotBound,Get-MailboxFolderPermission
    What am I doing wrong? 
    Running this on Exchange 2010 SP3 / Powershell Version 2.0
    Thanks 

    If I understood correctly, this should work...
    ForEach ($mbx in Get-Mailbox) {Get-MailboxFolderPermission ($mbx.Name + ":\Calendar") | Where-Object {$_.User -like <string>} | Select @{Name="Calendar
    Of";expression={($mbx.name)}},User,AccessRights}

  • I have a user who has permissions on site A B C 's some libraries. How can I get a list for all the contents the user have permission for?

    The user has permissions on site A B, and C. within the sites, the user has permissions on some lists/libraries.
    how can i retrieve an entire list to see what the user has permissions on?
    thank you 
    I might be a newbie in some area. But I'm working hard. :)

    You can get the report using powershell, please check below posts
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/5a3252bf-cb03-4488-9a0d-f4e0ce07d497/user-permissionsaccess-report-in-sharepoint-site
    http://reality-tech.com/2011/12/30/reporting-on-all-user-permissions-in-a-web-application/
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

  • List View Filter - I want to create List View based on a specific user

    I want to create a List View Filter based on specified user ID. I dont want to specify the [Me] for filtering the view based in current logged in User.
    I want the view to be based on specific user ID for Ex: "AD\JohnDoe"
    Thanks
    Nate

    The People/Group Picker field has several options for how the name is displayed. For example you can set it to be the friendly name or the account name. When you create your View Filter, make sure that you are using the same format as the field's display
    type.
    Dimitri Ayrapetov (MCSE: SharePoint)

  • How I can know if a user has the permission to read a file or not ?

    Hello,
    I have other question :
    How I can know if a user has the permission to read a file or not ?
    Smaine
    ThanK's

    I don't think common operating systems have an easy way to do that check.
    If you have a limited number of files, implement access control yourself, instead of using operating system permissions. E.g. write a configuration file that contains:
    # Syntax: "filename": "list of users who can access that file"
    somefile.txt: fred, alice, bob
    somedir/anotherfile.txt: bob, joe
    Read in the configuration file and check against it when a file is being requested.

  • Check if a user has a specific role

    Hello,
    Is it possible to check if a user has a specific role in MII 12.0?
    For example if the user has the role "xmii Developers" I would do something more in a transaction than if the user doesn't have this role.
    Thank you for your help.
    Regards,
    Matthias

    Hi Matthias Pröller ,
    Are u finding difficulty to trace which role user is assigned to? If so, then u can refer Abesh's Blog.
    OR
    If you are writing Transaction to get user list based on Role , then u can do following
    Create XML query.
    Configure above XML Query in Transaction, in links map (XML Query) URL like given below
    "https://Server:Port/XMII/Illuminator?service=admin&Mode=UserList&Content-Type=text/xml&group=XMII Administrators&IllumLoginName=loginId&IllumLoginPassword=pwd"
    Regards,
    Padma
    Edited by: Rao on Mar 31, 2009 11:52 AM

  • How do I get specific font to ALWAYS appear in text field whether user has font on computer or not?

    I am designing a simple form to be used as template for OTHER people to type up room signs. We would like the signs to be in a specific font that is not generally loaded on the average computer, and we do not want to have to distribute fonts to a gazillion people. My thought was to create a LiveCycle from, whereby the room user could type their name and title in the text fields on the form, and in theory, it would appear in the font I chose for the text field. I have tried various things, but it always gets substituted by the user's computer.
    Tried: Choosing "rich text" for field format in Object palette; choosing "Embed fonts" in "Save Options"; tried static form, tried dynamic form.  It could be that my test user has such an old version of Reader that it just CANNOT work.
    Thanks!

    The restrictions are listed as "normal." And it does appear as embedded when I go to the document properties, though it didn't until I used it for the text on the form (as apposed to just using in the text fields.) And when another user opens the form, the text appears in the specified font, but once they type in the text field, it defaults to different font.
    BTW, it is an Open Type Font, if that makes any difference.

  • How to find the list of plants that a user has access to

    Hi,
    Can any one help me pull all the plants that a user has authorization for?
    Is there any fucntion module that gives this list or any table from where i can pull this?
    Please let me know.
    Regards,
    Kumar.

    Looks like this FM is only giving the list of all users who has got authorization to a specific autho object say M_EINF_WRK (plant).
    But my requirement is; i will pass my user id and it should give me all the plants that i have access to.
    Please suggest.
    Regards,
    Kumar.

Maybe you are looking for

  • How do I append data and sequence numbers to a *.csv file name?

    All, I am looking for an easy way to build a filename with the data and time included, as well as a sequential number between 1 and 999 in the following format: C:\TestDirectory\test_11-08-25_1551_1301_001.csv I have looked at using the Express funct

  • WPC pages gives portal runtime error

    hi Experts, i am trying to make a WPC page  but while i am in edit page and i click on page layout or publish or finish i am getting portal runtime error in the pop up window. i am having WPC_Editor role. please suggest what can be the problem here.

  • Genericall​y compacting arrays using a test function

    Is there a way to do the following (or at least this stuff in the box) generically. Is there a name for this algorithm? Essentially I want to reduce an array to just its elements that pass a test. The test can just be another array of booleans which

  • 3-column display (or, "I want my WideMail back")

    To me, the biggest short-coming of mail.app is the lack of a 3-column display option. I can't believe that Apple neglected to add this - especially in light of Exchange support (do they think anyone coming over from Entourage might be expecting a sta

  • I want an old version of beard booth, can I get that somewhere?

    I want an old version of beard booth, can I get that somewhere?  I have not updated to OS 7 yet so the current version of beard booth will not work.  I need to have access to the old version of beard booth.