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;

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

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

  • 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

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

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

  • 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 can you change data on a SQL 2012 application database that uses availability groups from BizTalk server?

    If you use the WCF-SQL adapter it is recommend that you set UseAmbientTransaction to true if you are changing data. I think this requires MSDTC to be enabled on the SQL server that you are changing the data on. (http://msdn.microsoft.com/en-us/library/dd787981.aspx)
    I think that Availability groups does not support MSDTC. (http://msdn.microsoft.com/en-us/library/ms366279.aspx).
    How can you change data on a SQL 2012 application database that uses availability groups from BizTalk server?

    Hi,
    Yes, Availability groups doesn't support MSDTC. Please refer to the similar discusison which maybe helpfull:
    http://dba.stackexchange.com/questions/47108/alwayson-ag-dtc-with-failover
    http://stackoverflow.com/questions/17179221/msdtc-in-always-on-availability-groups

  • List of application engines that a delivered app engine touches

    Hi everybody,
    Can any one please tell me is there any documentation to get all the application engines that were touched by a delivered application engine.
    For example. the AP_VCHRBLD will call the app engine APVEDTPRRT and a lot other app engines.
    I want to know if there is any documentation provided by peoplesoft to know all the app engines that were touched by a delivered application engine.
    OR
    if you have any other docuementation(not from peoplesoft), please share with me.
    Thank you.

    You can look in the peoplettools table psaestepdefn. Where an AE step is statically coded to call another step it is recorded in AE_DO_APPL_ID and AE_DO_SECTION.
    select distinct ae_Applid, ae_do_appl_id
    from psaestepdefn
    where ae_do_appl_id != ' '
    and ae_applid != ae_do_appl_id
    order by 1,2
    AE_APPLID AE_DO_APPL_ID
    GP_PINMAP GP_PINMAP_CR
    GP_PKG_CMP GP_PINMAP
    GP_PKG_CR GP_PINMAP
    This is not going to work where the call is dynamic.

  • My mom updated her iPhone to iOS7, and now she has my contacts. Does this mean that she has access to all of my photos as well? How can she 'unlink' our phones? Or, is there anyway that I can get my stuff to disappear from her phone? Thanks

    My mom updated her iPhone to iOS7, and now she has my contacts. Does this mean that she has access to all of my photos as well? How can she 'unlink' our phones? Or, is there anyway that I can get my stuff to disappear from her phone? We share iTunes account so I think we are both on the same iCloud.

    Welcome to the Apple Community.
    If you are using the same ID as a primary iCloud login, then yes she can see your photos in photostream if you have it enabled.
    You can use the same ID for iTunes so you can share all your purchases, but you need different ID's for iCloud.
    Unfortunately, the mess caused by sharing the ID, will need to be sorted manually, once you both have your own ID's.

  • When I try to update to Itunes 11 I get an error message saying that Itunes has an invalid signature and wont be installed. I use Windows 7.

    Everytime I try to update to Itunes 11 I get an error message saying that Itunes has an invalid signature and can't be installed?  I have tried to install it two times and get the same message each time. Any solutions to my problem?? Those who have installed ITUNES 11 is it hard to work with? maybe im lucky it wont update?? I don't know.

    That suggests that the installer is getting damaged during the download.
    I'd first try downloading an installer from the Apple website using a different web browser:
    http://www.apple.com/itunes/download/
    If you use Firefox instead of IE for the download (or vice versa), do you get a working installer?

  • When I access the itunes store I get an error message saying that Itunes has detected a problem and has to be closed

    When I access the itunes store I get an error message saying that Itunes has detected a problem and has to be closed. The rest of Itunes is working fine... Any help?

    There could be any number of items causing this. First off is do you have an active internet connection? If so have you tried rebooting you computer?

  • HT2736 I gifted an application and the user has not redeemed code...lost her email can I send this to her again?

    I gifted an application and the user has not redeemed code...lost her email can I send this to her again?

    Yes, you can resend. See:
    http://support.apple.com/kb/HT1541
    Regards.

  • After I exit Firefox, I get a pop-up message that Firefox has stopped working.

    After I exit Firefox, I get a pop-up message that Firefox has stopped working. I have to click to close the program, or search online for a solution to the program, then close.

    See:
    * http://kb.mozillazine.org/Firefox_crashes
    * https://support.mozilla.com/kb/Firefox+crashes

  • Help!!! How do I get the bit color depth the user has his screen set to?

    Help!!! How do I get the bit color depth the user has his screen set to?
    Thank you.

    i'm not sure if it's what you 're looking for but it worked for me:
    GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
    GraphicsDevice[] gs = ge.getScreenDevices();
    for(int i=0;i<gs.length;i++){ //length is 1 (= i have only one screen? )
    GraphicsDevice g=gs[ i ];
    int nBits=g.getDisplayMode().getBitDepth(); //method getDisplayMode() only in jdk1.4 , i think
    System.out.println( nBits+"");
    output is 32 if i set my screen color to 32bits, 24 if...24, ...

Maybe you are looking for

  • Sharepoint 2013 installation in windows 2012 R2 server

    Hi, I am unable to install Sharepoint 2013 server on Windows 2012 R2 Server. I am getting below error The tool was unable to install Application Server Role, Web Server (IIS) Role. I checked my IIS it is working fine. Please help me out. Regards, Siv

  • Adobe Acrobat 9 Standard Stopped working correctly

    I have a legal licensed version of Adobe Acrobat 9 Standard that has worked fine for several years. Suddenly and possibly after one of the not so helpful updates, I can no longer delete, insert or extract pages. The delete option shows but is grayed

  • Problem with plug-ins in Photoshop Elements 10

    I imported plug-ins from CS3 to Photoshop Elements 10 plug-ins folder.  Why do othey not show up in Filters in Photoshop Elements 10?

  • DATABASE SERVICE NAME

    HOW TO GET DATABASE SERVICE NAME? I NEED IT INORDER TO INSTALL COMPANION PRODUCTS? ANY HELP THANKS ANYWAY

  • Cannot reinstall Safari

    I need to reinstall Safari. I am unable to reinstall Mavericks by restarting my MacBook Air (mid 2011 - up to date) or downloading Mavericks again from the app store. When I go to the page on Apple to reinstall Safari (Safari page - not developer), I