Home
Extended ECM
API, SDK, REST and Web Services
Getting a list of users and what groups they are in
Larry_Hall_(eplus01user1_-_(deleted))
I am trying to run a query that will show each group and the users in that group. I found this query in the KnowledgeBase, but have not been able to modify it to get the needed results. This returns the # of users in each group:SELECT k1.Name "BaseGroup", COUNT (*) "Users" FROM KUAF k1, KUAF k2WHERE k1.ID=k2.GroupID GROUP BY k1.Name ORDER BY k1.NameHow do I make this return the individuals (not the count) that are in each group?
Find more posts tagged with
Comments
Bhupinder_Singh
Message from Bhupinder Singh via eLinkFor LiveReports that query for which users belonging to which group, youwould need to do a join between KUAF and KUAFChildren. The LivelinkSchema document indicates that the KUAF table stores basic data forusers and groups, containing one record for each user or group; theKUAFChildren table stores the data defining the relationships betweengroups and the members of the group. KUAFChildren has only 2 columns:ChildID and ID. I include a sample SQL query below that may provide whatyou are looking for:===================================================================This will give you the Groups and their Users ordered by the group===================================================================SELECT a.Name "Groups", c.Name "Users" FROM KUAF a, KUAFChildren b, KUAF c WHERE a.ID = b.ID AND b.ChildID = c.ID AND a.Type=1 AND c.Type=0 ORDER BY a.NameNOTE: This is a three way join using the KAUF and KUAFChildren tables.The "Type=1" resticts the a table to just groups and "Type=0" restrictsthe c table to just users.- Bhupinder------------------------------------------------------ Bhupinder Singh, B.Math., B.Ed. Senior Product Specialist, Customer Support Open Text Corporation, Waterloo, Ontario, Canada Customer support e-mail: support@opentext.com Customer Support Telephone: 800-540-7292 ------------------------------------------------------ -----Original Message-----From: eLink Discussion: Livelink LiveReports Discussion[mailto:livereportsdiscussion@elinkkc.opentext.com] Sent: Friday, October 21, 2005 10:20 AMTo: eLink RecipientSubject: Getting a list of users and what groups they are inGetting a list of users and what groups they are inPosted by Hall, Larry O on 10/21/2005 10:18 AMI am trying to run a query that will show each group and the users inthat group. I found this query in the KnowledgeBase, but have not beenable to modify it to get the needed results. This returns the # of users in each group:SELECT k1.Name "BaseGroup", COUNT (*) "Users" FROM KUAF k1, KUAF k2WHERE k1.ID=k2.GroupID GROUP BY k1.Name ORDER BY k1.NameHow do I make this return the individuals (not the count) that are ineach group?[To reply to this thread, use your normal E-mail reply function.]============================================================Discussion: Livelink LiveReports Discussion
https://knowledge.opentext.com/knowledge/livelink.exe/open/2249677Livelink
Server:
https://knowledge.opentext.com/knowledge/livelink.exeTo
Unsubscribe from this Discussion, send an e-mail tounsubscribe.livereportsdiscussion@elinkkc.opentext.com.
Larry_Hall_(eplus01user1_-_(deleted))
Thank you. I'll try that
RajDon
I am looking for all the groups a person belong directly or/and indirectly. That means, if PERSONA is part of GROUPB and GROUPB is part of GROUPC, when you run the report, you should get both GROUPB and GROUPC as the persons groups. It¿s the way livelink shows all groups of a person, by searching for the person and clicking on groups of the person.
eLink User
Message from Nair, Krishnankutty N. via eLinkIf it is oracle a connect by should do it.If it is sqlserver somebaody may already have a function for you.An oracle version is provided only the sql.You can LR that with params I hope you can put it as a suto live report.This will give you every group in livelink where this userid is a part ofincluding projectsselect name from kuaf where id in (select id from kuafchildren start with childid = %1 connect by prior id = childid) order by name If you wanted to avoid Projects in thatselect name from kuaf where name <> 'Coordinators' and name <> 'Members' and name <> 'Guests' and id in (select id from kuafchildren where childid = %1) order by name Find All Groups Where my [Userid] Exists select id , name from kuaf where id in (select id from kuafchildren where childid = %1) Thanks Much Krishnankutty N Nair Tele 918-661-5824, fax 918-661-9206-----Original Message-----From: eLink Discussion: Livelink LiveReports Discussion [mailto:livereportsdiscussion@elinkkc.opentext.com] Sent: Thursday, October 27, 2005 9:27 AMTo: eLink RecipientSubject: Direct and indirect groups of the personDirect and indirect groups of the personPosted by Donikena, Rajamouli on 10/27/2005 10:25 AMI am looking for all the groups a person belong directly or/and indirectly. That means, if PERSONA is part of GROUPB and GROUPB is part of GROUPC, when you run the report, you should get both GROUPB and GROUPC as the persons groups. It¿s the way livelink shows all groups of a person, by searching for the person and clicking on groups of the person.[To reply to this thread, use your normal E-mail reply function.]============================================================Topic: Getting a list of users and what groups they are in
https://knowledge.opentext.com/knowledge/livelink.exe/open/4269457Discussion
: Livelink LiveReports Discussion
https://knowledge.opentext.com/knowledge/livelink.exe/open/2249677Livelink
Server:
https://knowledge.opentext.com/knowledge/livelink.exeTo
Unsubscribe from this Discussion, send an e-mail to unsubscribe.livereportsdiscussion@elinkkc.opentext.com.
RajDon
I tried a similor query and getting "CONNECT BY loop in data" error. I am looking into the data to resolve the issue. I want to see, If any body got a similor issue and were able to resolve it.
eLink User
Message from Nair, Krishnankutty N. via eLinkThe "connect by" if it works on your oracle install means that you dohave an oracle that understands "connect by".Try a hierarchical query ondtree to rule that out.If it happens on the users and groups then youhave in livelink a situation of circular reference or if I may "I am mygrandfather as well as the grand kid".We had a sitauation where we founda userid in livelink struggling to get to his folder and we put logs andfound this error that you are describing.How we solved it was more pureluck and I think we ran it in a sqlplus session and we found one of ourpeople had nested one agroup inappropriately.We took that out and voilaeverything was cool.I am told that opentext has some queries that canfind you wrongly created nestings.If you get it share with me also.Here's a link that I found on the web that talks about AM I MY GRAND FATHER
http://www.adp-gmbh.ch/ora/sql/connect_by.htmllook
at this The following query 'asks' for a parent and a supposed child (grandchild, grand grand child) and answers the question if the are indeed inan ancester successor relationship. BTW:I really am not a good oracle person.I just know how to execute somequeries for getting my work done. Thanks Much Krishnankutty N Nair Tele 918-661-5824, fax 918-661-9206-----Original Message-----From: eLink Discussion: Livelink LiveReports Discussion[mailto:livereportsdiscussion@elinkkc.opentext.com] Sent: Friday, October 28, 2005 10:07 AMTo: eLink RecipientSubject: CONNECT BY loop in dataCONNECT BY loop in dataPosted by Donikena, Rajamouli on 10/28/2005 11:03 AMI tried a similor query and getting "CONNECT BY loop in data" error. I am looking into the data to resolve the issue. I want to see, If any body got a similor issue and were able to resolveit.[To reply to this thread, use your normal E-mail reply function.]============================================================Topic: Getting a list of users and what groups they are in
https://knowledge.opentext.com/knowledge/livelink.exe/open/4269457Discussion
: Livelink LiveReports Discussion
https://knowledge.opentext.com/knowledge/livelink.exe/open/2249677Livelink
Server:
https://knowledge.opentext.com/knowledge/livelink.exeTo
Unsubscribe from this Discussion, send an e-mail tounsubscribe.livereportsdiscussion@elinkkc.opentext.com.
RajDon
Thanks Nair for your help.Raj