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}

Similar Messages

  • Maxl/esscmd to get list of applications/databases that user has access to

    Is there any maxl/esscmd to get the list of applications/databases that a user has access to?
    I know that LISTGROUPUSERS 'groupName' -- this list all users of a group.
    Can anyone help please?

    MaxL
    display privilege user SomeUser;

  • 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.

  • Getting list of tables the user has access to across different schemas.

    Hi,
    I have to get the list of tables that an User has access to. I tried the below code. It takes a very long time. Is there any way in which I can specify the user name and get all the tables that he has access to? I know that we can use dbMetadata.getTables api. But this returns the list of tables under the said schema. But I want the list of tables that the user has access including tables in other schema.
    In the below code, I am trying to get the tables for which USER_MICHAEL has access to.
    DatabaseMetaData dbMetadata = connection.getMetaData(); String userName = null; dbrs = dbMetadata.getTables(null,userName , "%", new String[] { "TABLE" }); dbrs=dbMetadata.getTablePrivileges("",userName,"%"); while (dbrs.next()) { String tableName = dbrs.getString("TABLE_NAME"); String schema = dbrs.getString("TABLE_SCHEM"); String privilege = dbrs.getString("PRIVILEGE"); String grantee = dbrs.getString("GRANTEE"); if(grantee!=null && grantee.equals("USER_MICHAEL")){       System.out.println("Schema---"+schema+" Table---"+tableName+"  Privilege----"+privilege+"  grantee---- "+grantee); } }

    That would be database dependent.
    Some engines have some system tables that together may be used to extract such information, others may not make it available at all outside closed APIs.

  • 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

  • IPhone calendar + List View All Calendars option (MobileMe)

    Hi all,
    I'm trying to fix a problem, which maybe there for some time already, in the iPhone Calendar. I'm using MobileMe to sync contacts and appointments. All my devices are up-to-date to the latest levels of firmware and software.
    I have a normal calendar in iCal and some subscribed calendars. Ther's no difference in both type of calendars.
    This is what's happening.....
    - Individual calendars are all looking perfect in List, Week and Month view.
    - All Calendar option is looking good in Week and Month view.
    - All Calendar option is bad in List view mode.
    When selecting the last option the Today date is changed a couple of days (Today = Wednesday 10-3), but also appointments are on different days. For example the soccer games on Saturday (6-3) and Sunday (7-3) are now changed to Tuesday (9-3) and Wednesday (10-3).
    I have the same calendar on my other iPhone and nothing weird going on over there?!?
    Does somebody have a clue?
    PS. The calendars for this (MobileMe) user are all correct on the other Apple devices.
    Thanks!
    Regards,
    Arjon G. Stelinga

    Hi All,
    Got a message from cini007, but I get an error message when I want to reply to that message. I have copied the "solution" below.
    I have tried this, but it's not working. The only thing happening is it has changed the dates randomly.
    Although I have been looking for the auto shut-off option. I can't find that option only in the alarm clock options?
    cini007 posted "Re: iPhone calendar + List View All Calendars option (MobileMe)" in "iPhone calendar + List View All Calendars option (MobileMe)" on Mar 9, 2010 8:20:57 AM.
    I had Genius Bar visit with same issue—no go (was advised to reset to factory settings).
    BUT here is the SOLUTION as it happened again:
    1. set auto shut-off to never
    2. turn OFF MobileMe syncing for calendars on the iPhone (from Settings menu)
    3. wait for calendar entries to be removed—takes minutes if you have several calendars
    4. hard reset iPhone (press Home and On/Off at the same time for >5 seconds), and wait 2 minutes (about the time to reboot)
    5. restart iPhone
    6. turn ON MobileMe syncing for calendars on the iPhone (again, from Settings menu)
    Message was edited by: Arjon Stellinga
    Message was edited by: Arjon Stellinga

  • Query to get objects list for which the current user has 'SELECT' privilege

    Hi,
    I want to get tables and views list for which the current user has 'SELECT' privilege excluding sytem tables and views. The privilege information for the current user is scattered in more than one system views. I have following system views
    USER_TAB_PRIVS_RECD - Object grants for which the current user is the grantee
    ROLE_TAB_PRIVS - describes table privileges granted to roles. Information is provided only about roles to which the user has access.
    If the object privilege is granted explicitly like "GRANT ALL ON TABLE_NAME TO "USERNAME" then this privilege entry goes to USER_TAB_PRIVIS_RECD
    If the object privilege is granted by ROLE. Role is created with certain object privileges. this role is assigned to user "GRANT ROLE_NAME TO "USERNAME"", then this entry goes to ROLE_TAB_PRIVS
    From these findings, I have composed below query
    (SELECT DISTINCT TABLE_NAME FROM USER_TAB_PRIVS_RECD) UNION (SELECT DISTINCT TABLE_NAME FROM ROLE_TAB_PRIVS WHERE PRIVILEGE = 'SELECT')
    Have I got user's all prvilege details? should I look some other system views?
    How to exclude system table privileges details?
    (SELECT DISTINCT TABLE_NAME FROM USER_TAB_PRIVS_RECD) UNION (SELECT DISTINCT TABLE_NAME FROM ROLE_TAB_PRIVS WHERE PRIVILEGE = 'SELECT' AND OWNER NOT IN ('SYS','SYSTEM') Is this right?
    What about Public role in Oracle? Should I consider public role here?
    Oracel Version :11g
    I want make this query to work on Oracle 8i or above version
    Thanks

    >
    I want to get tables and views list for which the current user has 'SELECT' privilege excluding sytem tables and views.
    >
    You will need a hierarchical query to do that.
    Try this script for Listing privileges recursively for Oracle users
    http://www.adp-gmbh.ch/ora/misc/recursively_list_privilege.html

  • How do I get a list of the reports that a user has access to?

    <p>I need to be able to determine which reports a specified user has access to.  This is for an application where users will be able to search and view reports that have been archived through a separate process.  </p><p>I&#39;ve searched through the developer library, but I can&#39;t find this specific information.  Can I use the ObjectPrinicpals class to get this info?</p><p>Thanks!</p><p>-Dell<br /></p>

    Hi Robert!
    Yes, the presentation went well. It was a lot of fun to do and I had a great time at the conference.
    Your suggestion works great if I'm walking down through the reports looking to see who has access to them.Â
    However, I need to do this starting from the User object. When I use the ObjectPrincipals of the User, I get a list of the users who have the rights to modify the user. I did a lot of work on this last week and it boils down to I'm going to have to actually log in as the user (I can use trusted authentication to do this without having the user's password) and then run a query to select all of the reports in the system - this should give me just the reports that the user has access to. Not the most efficient way to get the data from my perspective, but it should work.
    This would be a great feature to have added to future versions of the SDK. I need it for a couple of purposes:
    1. To gather information to set up the security in my archive viewer application.
    2. For auditing purposes - we currently have only Professional licenses so I don't have access to the internal auditing functionality. Plus, I'm not sure that that includes the kind of info I'm looking for so I'm building an app that extracts information to XML which is then used by a couple of reports so that I can provide the audit info as needed.
    -Dell
    Â - A computer only does what you told it to, not what you thought you told it to!</p>

  • 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

  • Hi ,How can I get a list of all laptops or users with folder direction enabled or offline files enabled, be it sccm or poerwshell . i have struggled for a week.

    Hi ,how can I get a list of all laptops or users with folder direction enabled or offline files enabled, be it sccm
    or poerwshell . i have struggled for a week
    tchocr

    Hi,
    There is no such PowerShell command can achiev this. Maybe you can use a script to get the user name with folder redirection enabled. However, I am not familiar with writing script, and it would be better for you to ask in script forum below for professional
    assistance:
    http://social.technet.microsoft.com/Forums/en-US/home?forum=ITCG&filter=alltypes&sort=lastpostdesc
    Best Regards,
    Mandy
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • How can I get a list of all laptops or users with folder direction enabled or offline files enabled, be it sccm or poerwshell . i have struggled for a week.

    How can I get a list of all laptops or users with folder direction enabled or offline files enabled, be it sccm or poerwshell . i have struggled for a week.

    Hi,
    There is no such PowerShell command can achiev this. Maybe you can use a script to get the user name with folder redirection enabled. However, I am not familiar with writing script, and it would be better for you to ask in script forum below for professional
    assistance:
    http://social.technet.microsoft.com/Forums/en-US/home?forum=ITCG&filter=alltypes&sort=lastpostdesc
    Best Regards,
    Mandy
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • BO SDK Query to find all folders that a user has access to

    Hi Experts
    Please help me on BO SDK Query to "find all folders that a user has access in a single query".
    I am tried trial & error using PARENTS & CHILDREN. nothing worked
    Please advice
    Thanks!
    Prasath

    Hi Aasavari
    I am checking BO Web services samples and .NET samples. Please advice me the correct files to check the user/folder rights.
    Thank you so much
    Prasath
    http://wiki.sdn.sap.com/wiki/display/BOBJ/NETWebServicesSDKSamples

  • How to determine if a user has access to an item

    Without using the WWSEC_API, i need to find out if a user (not the logged in user) has the right privileges to view an item (url).
    Has anyone identified what tables are involved in determining if a user has access to view an item ?

    Create a vo with the following SQL passing userid as bind value:
    SELECT C.USER_NAME,
    B.RESPONSIBILITY_NAME,
    A.START_DATE,
    A.END_DATE
    FROM APPS.FND_USER_RESP_GROUPS_DIRECT A,
    APPS.FND_RESPONSIBILITY_TL B,
    APPS.FND_USER C
    WHERE C.USER_ID = A.USER_ID
    AND C.USER_NAME= :1
    AND B.RESPONSIBILITY_ID = A.RESPONSIBILITY_ID
    You will have the list of all the responsibilities of a user.
    Kristofer

  • Script to find all mailboxes a user can access

    I am looking for a script to find all mailboxes to which one user has access to. I have used:
    get-mailbox -resultsize unlimited | get-folderpermission -user username > file.csv
    The problem with this is the amount of mailboxes, powershell returns:
    Sending data to a remote command failed with the following error message: The total data received from the remote clien
    t exceeded allowed maximum. Allowed maximum is 524288000. For more information, see the about_Remote_Troubleshooting
    The problem is the amount of data. Is there a way to do this by database, by servers, skimmed down, etc?
    Thanks

    Hi,
    The following command can list all mailboxes which the specific user Bob has full access permissions, please try it:
    Get-Mailbox -Database "Mailbox Database01" -ResultSize unlimited | Foreach {Get-MailboxPermission -Identity $_.Name -User Bob}
    Regards,
    Winnie Liang
    TechNet Community Support

  • How can I check if an user has access to an url within my web app?

    Hi,
    I have a web application where I allow the users to set their startup page by presenting them a list of startup pages. However, some startup pages can accessed only by certain users, so I want to present the user only those pages the user has access to.
    How can I do this with weblogic?
    One way is to read the web.xml file and determine the roles that have access to the page, then check whether the user has any of those roles.
    Is there a better way eventually using some weblogic api?
    Thanks

    Just for the record, I decided to parse the web.xml file and to simulate whatever the container does.

Maybe you are looking for

  • Reclassification of Customer & Vendor Balances in Group Currency

    Hello It is with regards to the Reclassification of Customer & Vendor Balances vide T Code FAGLF101 - Sorting/Reclassification (New) as per IFRS. The reclassification entries are getting generated in Document & Local Currency but no values are gettin

  • Why does my email password keep having to be renewed?

    this is the second time recently that my email to the BB has been stopped because I need to change my email password. Why does this keep happening? I have changed nothing in my cox.net email account. You are doing something. I can't find a phone numb

  • Poor I/O Performance on Solaris - v1.4.1_01

    Does anyone have any comments on the following? It's an I/O analysis done to determine which Java methods might be used to replace an existing C++ platform-specific file re-compression subsystem. The system has to handle up to 200,000 files per day (

  • Setting preferences in Adobe CS4

    Adobe CS4 programs will not display the folders on my computer when I try to save a file or perform a function. For example when using the Export function in Fireworks the drop down menu will not display the folders on my computer. The middle is miss

  • Split Rows and Store the selection

    Hi all, I have a table with a column where there is a numeric data and I developed a code that, if the user insert a number > 1 and he clicks on enter, he writes this row as many times as the number inserted.This table has not a ID that indentify the