Listing all users in a group

Hi guys,
I need to write some code that returns a list of Users that belong to a particular group, using pt 5. This has been asked in lots of different posts but no answer has been given. There must be a way to do this somehow.
Should I be doing an IPortalSearchRequest and then filtering by group? I can't work out how to do this, or even if it is possible. Or should I be using the IUserGroupManager interface? It does not seem to be documented anywhere.
I do not want to resort to reading the PlumTree DB but it looks like I may have to. Obviously this defeats the whole point of the API - but considering this changed from 4.5 to 5 maybe this is not a problem!

Also check these other two posts. If the gateway blows up the links I'm sticking in below, just use the general portal search to look for "QueryUsers"
http://portal.plumtree.com/portal/server.pt?in_hi_req_objtype=18&in_hi_req_objtype=17&in_hi_req_objtype=1&in_hi_req_objtype=512&in_hi_req_objtype=43&in_hi_userid=281772&in_hi_req_bbs=1&in_hi_req_thesaurus=1&space=SearchResult&in_hi_req_spell=1&parentid=1&cached=false&control=searchstart&in_hi_req_gadsrchtype=bannersearch&in_hi_req_initialsearchstring=QueryUsers&in_hi_req_page=50&in_tx_query=QueryUsers&in_hi_req_lang=en&parentname=SearchResult#
http://portal.plumtree.com/portal/server.pt?in_hi_req_objtype=18&in_hi_req_objtype=17&in_hi_req_objtype=1&in_hi_req_objtype=512&in_hi_req_objtype=43&in_hi_userid=281772&in_hi_req_bbs=1&in_hi_req_thesaurus=1&space=SearchResult&in_hi_req_spell=1&parentid=1&cached=false&control=searchstart&in_hi_req_gadsrchtype=bannersearch&in_hi_req_initialsearchstring=QueryUsers&in_hi_req_page=50&in_tx_query=QueryUsers&in_hi_req_lang=en&parentname=SearchResult#

Similar Messages

  • Listing of Users with associated Groups

    Is there an easy way to generate a listing of APEX users and their associated groups? I know how to get the current user and how to determine what groups they are part of, but am looking for a simple query I can run to generate a complete list of Users and their associated groups.
    Thanks

    if you want to return the application groups that a user is assigned to, you can use the WWV_FLOW_GROUP_USERS intersection table. For example;
    SELECT group_name
    FROM wwv_flow_group_users
    WHERE user_id = (SELECT user_id
    FROM wwv_flow_users
    WHERE user_name ='MRITTMAN')
    would list out all of the groups that the user 'MRITTMAN' belongs to
    So to get all users and their groups, remove the where clause..
    (You will need read rights to the view, some dba's deny read rights to these objects in the name of security..)
    Thank you,
    Tony Miller
    Webster, TX

  • How can I list all users who have access to a particular TABLE or VIEW

    Hi,
    Can someone tell me how I can list all users who have access to a particular TABLE or VIEW.
    Abhishek

    Hi,
    Take a look on this link: http://www.petefinnigan.com/tools.htm
    Cheers

  • PowerShell - List all users that have access to a particular SPLIstItem

    Hi there,
    In PowerShell - how to list all users that have access to a particular SPLIstItem?
    Thanks so much in advance.

    Hi frob,
    According to your description, my understanding is that you want to list all users who have access to a particular SharePoint list item via PowerShell.
    You can use the following PowerShell command:
    $web = Get-SPWeb http://sp/sites/First
    $list=$web.Lists["listV2"]
    $item=$list.Items | where {$_['ID'] -eq 1}
    $item | Select -ExpandProperty RoleAssignments |Select {$_.Member.DisplayName}, {$_.Member.LoginName}, RoleDefinitionBindings
    In the above command, you need to change the web URL to your site's URL, change “listV2” to the name of your list, and change the ‘1’ to the ID of the list item.
    The result looks like:
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • How can I list all users and their DEFAULT tablespace?

    How can I list all users and their DEFAULT tablespace?
    Peter

    Peter, the following short article that lists the most heavily used Oracle rdbms dictionay views might be of interest based on your question:
    How do I find information about a database object: table, index, constraint, view, etc… in Oracle ? http://www.jlcomp.demon.co.uk/faq/object_info.html
    HTH -- Mark D Powell --

  • List all users and their OUs they belong to

    Hi,
    I would like to list all users with the OU they belong to and furthermore add an specific attribute that was added...
    I can get both information separately:
    get-aduser -SearchBase 'OU=DOMAIN,DC=mygroup,DC=re,DC=lan' | FT name
    and
    Get-ADOrganizationalUnit -SearchBase 'OU=DOMAIN,DC=mygroup,DC=re,DC=lan' -properties name,budgetanalytics | FT name,budgetanalytics
    but I'd like to get the list containing user1, its OU, its budgetanalytics
    Thanking you in advance,
    Cédric

    Thanks for your reply!
    I tried the following:
    $Users = get-aduser -SearchBase 'OU=Mes Utilisateurs,DC=itced,DC=lan' -filter '*'
    $OU = $User.distinguishedname -split ',',2 | select -last 1
    $output = @()
    Foreach($User in $Users){
    $budgetanalytics = Get-ADOrganizationalUnit -SearchBase $OU -Properties objectGUID
    $Object = New-Object PSObject                                       
    $Object | add-member Noteproperty user $user.name         
    $Object | add-member Noteproperty OU $OU                       
    $Object | add-member Noteproperty objectGUID $objectGUID       
    $output += $Object
    $output
    but I get the following
    user                                             
    OU                                              
    objectGUID                                      
    User1                                            
    OU=Mon OU,OU=Mes Utilisateurs,DC=itced,DC=lan    {Microsoft.PowerShell.Commands.Internal.Forma...
    User2                                            
    OU=Mon OU,OU=Mes Utilisateurs,DC=itced,DC=lan    {Microsoft.PowerShell.Commands.Internal.Forma...
    Why do I get "Microsoft.PowerShell.Commands.Internal.Forma..." instead of the actual objectGUID of the Organizational Unit
    Thanking you in advance

  • List all users whos password has expired

    Hi,
    Is it possible to list all users whos password has expired in the R\3 system?
    Thanks in advance,
    Aviad

    You can use program RSUSR200.
    On selection screen in block 'Selection by status of the password' select only 'Users with inactive passwords' checkbox.

  • List all users with full control on a SharePoint 2013 Sub site from SharePoint Object Model in C#

    If I have a sub site URL and a user with Site Admin, can I list all users in that sub site that have Full Control at that level?
    Any C# code sample?

    Still you can do that, just pass the subsites to your code and from their you can find the users dynamically.
    You could also use SPWeb.Users property to get users assigned to a subsite
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spweb.users(v=office.15).aspx
    alternatively you can also use SPWeb.SiteUsers to get all users
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spweb.siteusers(v=office.15).aspx
    other APIs of help-
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spweb.associatedmembergroup(v=office.15).aspx
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spweb.associatedownergroup(v=office.15).aspx
    http://sharepoint.stackexchange.com/questions/101671/object-model-list-all-users-with-full-control-on-a-sub-site-in-sharepoint-2013
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if my reply helps you

  • How to list all user's "followed" count?

    Dear all,
    I need to genearate a report to list all user's Followed items count.
    I found follow REST API:
    http://msdn.microsoft.com/en-us/library/dn194080.aspx#bk_FollowedCount
    By using "My/followedcount", I can get current user's count of items he or she followed. It is exactly what I need. But I need to list all users' "following count". How can I do it?
    Thank you for any input.
    Mark

    Hi Mark Lui,
    Please check the code sample in below article, whether it is working in your scenario, it is using the client object model to get the specified user’s followed content, to get all users’ following content, please first iterate users information, then use
    this to get followed count:
    How to get Count and List of documents and sites followed by a User in Office 365 SharePoint 2013 Site using CSOM:
    http://sundarnarasiman.net/?p=186
    Thanks,
    Qiao Wei
    TechNet Community Support

  • Getting list of all users and their group memberships from Active Directory

    Hi,
    I want to retrieve a list of all the users and their group memberships through JNDI from Active Directory. I am using the following code to achieve this:
    ==================
    import javax.naming.*;
    import java.util.Hashtable;
    import javax.naming.directory.*;
    public class GetUsersGroups{
         public static void main(String[] args){
              String[] attributeNames = {"memberOf"};
              //create an initial directory context
              Hashtable env = new Hashtable();
              env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
              env.put(Context.PROVIDER_URL, "ldap://172.19.1.32:389/");
              env.put(Context.SECURITY_AUTHENTICATION, "simple");
              env.put(Context.SECURITY_PRINCIPAL, "[email protected]");
              env.put(Context.SECURITY_CREDENTIALS, "p8admin");
              try {
                   // Create the initial directory context
                   DirContext ctx = new InitialDirContext(env);     
                   //get all the users list and their group memberships
                   NamingEnumeration contentsEnum = ctx.list("CN=Users,DC=filenetp8,DC=com");
                   while (contentsEnum.hasMore()){
                        NameClassPair ncp = (NameClassPair) contentsEnum.next();
                        String userName = ncp.getName();
                        System.out.println("User: "+userName);
                        try{
                             System.out.println("am here....1");
                             Attributes attrs = ctx.getAttributes(userName, attributeNames); // only asked for one attribute so only one should be returned
                             System.out.println("am here....2");
                             Attribute groupsAttribute = attrs.get(attributeNames[0]); // memberOf
                             System.out.println("-----"+groupsAttribute.size());
                             if (groupsAttribute != null){
                                  // memberOf is a multi valued attribute
                                  for (int i=0; i<groupsAttribute.size(); i++){
                                  // print out each group that user belongs to
                                  System.out.println("MemberOf: "+groupsAttribute.get(i));
                        }catch(NamingException ne){
                        // ignore for now
                   System.err.println("Problem encountered....0000:" + ne);
                   //get all the groups list
              } catch (NamingException e) {
              System.err.println("Problem encountered 1111:" + e);
    =================
    The following exception gets thrown at every user entry:
    User: CN=Administrator
    am here....1
    Problem encountered....0000:javax.naming.NamingException: [LDAP: error code 1 -
    000020D6: SvcErr: DSID-03100690, problem 5012 (DIR_ERROR), data 0
    ]; remaining name 'CN=Administrator'
    I think it gets thrown at this line in the code:
    Attributes attrs = ctx.getAttributes(userName, attributeNames);
    Any idea how to overcome this and where am I wrong?
    Thanks in advance,
    Regards.

    In this sentence:
    Attributes attrs = ctx.getAttributes(userName, attributeNames); // only asked for one attribute so only one should
    It seems Ok when I add "CN=Users,DC=filenetp8,DC=com" after userName, just as
    userName + ",CN=Users,DC=filenetp8,DC=com"
    But I still have some problem with it.
    Hope it will be useful for you.

  • List all users/groups in Contacts App with Mac OSX 10.9 Server

    I have installed Mac OSX 10.9 Server locally, and I am trying to set it up so that when a user opens Contacts, and goes to Directory Service it will list all of the users and groups (that have a mailing list) on the server. However, it will only show the users if they are searched for. Otherwise, it is blank.

    As the error says - you need to fix the permissions on your preferences folder, and it sounds like you may be missing part of the Application Support folders or have a permissions problem there as well.
    It sounds like something weird happened to your system that messed up permissions -- we see that happen often when people try to use Apple's migrate utilities between systems or disks (it doesn't copy everything, and messes up permissions).  Fixing permissions with Disk Utility can help, but you may need to reinstall Photoshop to replace missing files/folders, and you'll still have to fix the permissions on your preferences folder.

  • Lsgrp - list all members of a group

    lsgrp is a small and fast utility written in C that does just one thing: it lists the members of a group. It can be used in scripts that need to do something for each user in a group, such as setting up directories or generating per-user configuration files. There is a section on the project page explaining why a new utility was necessary.

    I agree, addressing a new message to a group using Address through the Mail program seems to fill in just the first recipient's name.
    A work around is to start your new message, click on Address and select the group you wish to send the message to. Take the extra step to highlight the first person in the group and then command-A to select all. When you then click on the To: button all of the recipient's will be in the address line of your mail message.
    Alternately, start your new message and then type the name of the group in the To: line (don't use the Address button at all). You don't have to get all of the name typed in before the group name is identified. When the group name has been properly identified just hit the Return key and all of the group members will be filled in the To: line. This should do what you are hoping for.
    Dale

  • List all users with no permissions?

    Hello, is there a way to get a list of all users within a DB that have not been assigned permissions/roles?
    Thanks in advance.

    There may be a chance this users may have fixed server role.
    to get complete list you can try the below query
    DECLARE @DBuser_sql VARCHAR(4000)
    DECLARE @DBuser_table TABLE
    DBName VARCHAR(200),
    UserName VARCHAR(250),
    LoginType VARCHAR(500),
    AssociatedDatabaseRole VARCHAR(200)
    SET @DBuser_sql='
    SELECT ''?'' AS DBName,a.name AS Name,
    a.type_desc AS LoginType,
    USER_NAME(b.role_principal_id) AS AssociatedDatabaseRole
    FROM ?.sys.database_principals a
    LEFT OUTER JOIN ?.sys.database_role_members b ON a.principal_id=b.member_principal_id
    LEFT OUTER JOIN ?.sys.server_role_members c ON a.principal_id=c.member_principal_id and a.principal_id=c.member_principal_id
    WHERE a.sid NOT IN (0x01,0x00) AND a.sid IS NOT NULL AND a.type NOT IN (''C'')
    AND a.is_fixed_role <> 1 AND a.name NOT LIKE ''##%'' AND ''?'' NOT IN (''master'',''msdb'',''model'',''tempdb'')
    ORDER BY Name'
    INSERT @DBuser_table
    EXEC sp_MSforeachdb @command1=@dbuser_sql
    SELECT DBName,UserName,LoginType,
    max(case when AssociatedDatabaseRole ='db_owner' then '1' else '0' end )'db_owner',
    max(case when AssociatedDatabaseRole ='db_securityadmin' then '1' else '0' end )'db_securityadmin',
    max(case when AssociatedDatabaseRole ='db_accessadmin' then '1' else '0' end )'db_accessadmin',
    max(case when AssociatedDatabaseRole ='db_backupoperator' then '1' else '0' end )'db_backupoperator',
    max(case when AssociatedDatabaseRole ='db_ddladmin' then '1' else '0' end )'db_ddladmin',
    max(case when AssociatedDatabaseRole ='db_datareader' then '1' else '0' end)'db_datareader',
    max(case when AssociatedDatabaseRole ='db_datawriter' then '1' else '0' end) 'db_datawriter',
    max(case when AssociatedDatabaseRole ='db_denydatawriter' then '1' else '0' end )'db_denydatawriter',
    max(case when AssociatedDatabaseRole ='db_denydatareader' then '1' else '0' end )'db_denydatareader',
    max(case when AssociatedDatabaseRole is NULL then '1' else '0' end )'No Roles'
    FROM @DBuser_table
    group by DBName,UserName,LoginType
    -----Server Roles
    SELECT sp.name AS LoginName,sp.type_desc AS LoginType, sp.default_database_name AS DefaultDBName,slog.sysadmin AS SysAdmin,slog.securityadmin AS SecurityAdmin,slog.serveradmin AS ServerAdmin, slog.setupadmin AS SetupAdmin, slog.processadmin AS ProcessAdmin, slog.diskadmin AS DiskAdmin, slog.dbcreator AS DBCreator,slog.bulkadmin AS BulkAdmin
    FROM sys.server_principals sp JOIN master..syslogins slog
    ON sp.sid=slog.sid
    WHERE sp.type <> 'R' AND sp.name NOT LIKE '##%'
    OR
    You can also the refer below link
    http://consultingblogs.emc.com/jamiethomson/archive/2007/02/09/SQL-Server-2005_3A00_-View-all-permissions--_2800_2_2900_.aspx
    --Prashanth

  • How to list all users present in Default Autheticator  in WebLogic Security Realm

    Hi All,
    I need to get a list of all the users in my Weblogic server--> security realm--> Default Authenticator
    There are more than 1000 users present in my security realm for different different Authentication Providers. So I can not get these details from WebLogic Admin Console.
    Can anyone please help me in getting this list of all users in Default Authenticator? Please let me know how can I get these details.
    My WebLogic version is 10.3.4.0
    Thanks in Advance!

    You can use JMX to list users
    http://weblogic-wonders.com/weblogic/2010/11/10/list-users-and-groups-in-weblogic-using-jmx/

  • Can not list all user in Sun Iplant Directory Server5.0

    wls61sp1 sun directory server5.0
    when I config the LDAP v1 Realm,
    can only get the users from one user dn
    such as "o=NetscapeRoot,ou=beagz,cn=group1"
    but if group1 include another group group1-1,
    and a user include in group1-1,such user can not
    be see in the wls admin console.
    how can I see all users or all groups in the
    user dn?

    Hi, Eric:
    What are your LDAP configuration settings? Is the "Group Is Context"
    flag set to false?
    - Jim
    Jim Brown
    Developer Relations Engineer
    BEA Support
    "Eric.Nie" wrote:
    >
    wls61sp1 sun directory server5.0
    when I config the LDAP v1 Realm,
    can only get the users from one user dn
    such as "o=NetscapeRoot,ou=beagz,cn=group1"
    but if group1 include another group group1-1,
    and a user include in group1-1,such user can not
    be see in the wls admin console.
    how can I see all users or all groups in the
    user dn?

Maybe you are looking for

  • Running iLife 06 and iLife 08 together

    I was just curious - plan to buy an Intel machine early next year. Could I post things on my web site using iLife 08 on the new computer and also post things on the same web site using iLife 06, which will be left on the old computer? Or do I have to

  • Sapphire HD 7950 OpenCL/GL Support

    I recently updated my Mac Pro 4,1 with the relatively new Sapphire AMD HD 7950 card for Mac. However, it looks like OpenCL and OpenGL support from CC is not yet available for this card, regardless of its ability to support high-intensity programs tha

  • DVD Studio Pro Asset Question

    I have been rendering out to .mov files using QuickTime conversion out of Final Cut Pro. However, each time I try to import this .mov file as an asset in DVD Studio Pro it gives me an error stating incompatible format. How do I need to be rendering o

  • Cannot add memeber to group

    Hello since today I've a strange problem with SDS version 5.2.4. I cannot add member to 2 groups because in the group edit entry I see only "general" and "languages" but not "members". The problem is only in two of the 30 groups that I've. Regards Da

  • Excel Project Documentation Template

    I am relatively new to SolMan. That being said, here is my situation: In Tx SOLAR_PROJECT_ADMIN, I chose "Goto --> Project Template --> Implementation Projects". In the "Documentation Types" tab, I added a new document type "Z001 - Excel Template" wi