Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Content Management (Extended ECM)
API, SDK, REST and Web Services
Need help determining if a user is a member of a group
Ray_Peterson_(rpeterso_-_(deleted))
I'm trying to determine if a user is a member of a specific group, and I can't seem to figure out what some fo the calls for UAPI are.To make the code portable, I'm trying to get the group ID based on the string name of the group. Than I'd like to execute something similar to the "ListMembership" method to get a list of users that are a member of the specified group. The "ListMembership" method doesn't exist in the UAPI, though.I've already gotten the current user id via a call to .fPrgCtx.USession().fUserID.HELP!!!!! Please...Can someone point me in the right direction so I can figure out what is available in UAPI, CAPI, DAPI and any other ?API classes. I've tried using the Livelink API Developers Guide, but not all the methods are available. Or maybe supply a code snippet that will work. I'd prefer the location of where the documentation may be, but I'd also settle for a code snippet.ThanksMichael Dailous
Find more posts tagged with
Comments
eLink User
Message from Dylan Wright via eLinkMichael-There is much functionality beyond the builtins (DAPI,CAPI,UAPI etc). Forinstance, $LLIAPI.UsersPkg.MyPublicGroupsGet() will do what (I think) youwant, which is get a list of groups that the user is a member of. LLIAPI &KERNEL can be very useful (also BUILDER if you plan on extending it).---------------------------------------------------------Dylan Wright (415)778-0324Software Developer cel (415)307-0324XIS, Inc. fax (415)778-0812> -----Original Message-----> From: eLink Discussion: Development Discussion> [mailto:development@elinkkc.opentext.com]> Sent: Thursday, April 06, 2000 2:37 PM> To: eLink Recipient> Subject: Need help determining if a user is a member of a group>>> Need help determining if a user is a member of a group> Posted by rpeterso on 04/06/2000 05:28 PM>> I'm trying to determine if a user is a member of a specific> group, and I can't seem to figure out what some fo the calls for UAPI are.>> To make the code portable, I'm trying to get the group ID based> on the string name of the group. Than I'd like to execute> something similar to the "ListMembership" method to get a list of> users that are a member of the specified group. The> "ListMembership" method doesn't exist in the UAPI, though.>> I've already gotten the current user id via a call to> .fPrgCtx.USession().fUserID.>> HELP!!!!! Please...>> Can someone point me in the right direction so I can figure out> what is available in UAPI, CAPI, DAPI and any other ?API classes.> I've tried using the Livelink API Developers Guide, but not all> the methods are available. Or maybe supply a code snippet that> will work. I'd prefer the location of where the documentation may> be, but I'd also settle for a code snippet.>> Thanks> Michael Dailous>> [To reply to this thread, use your normal e-mail reply function.]>> ============================================================>> Discussion: Development Discussion>
http://knowledge.opentext.com/knowledge/livelink.exe?func=ll&objId=786303&objAction=viewLivelink
Server:
http://knowledge.opentext.com/knowledge/livelink.exe
Bickers
Hi Michael,There is an OScript function in the DbConnect object called CheckRight.You already have a program session, so you can use a call such as...Integer groupID = nnnnBoolean isInGroup = .fPrgCtx.fDbConnect.CheckRight(groupID)You don't need to pass in the userid, because it is implied in the database connection object.If you need to test for a user other than the current user, take a look inside the CheckRight script to see the underlying CAPI call.Cheers,Phil.
Application_Services_FUJITSU_(fuji_ware05_-_(delet
Hi,The functions UAPI.RightsList() and UAPI.RightsListByID()shoul give you a good result.Kind regardsJohan RaedemaekerAsBuiltmailto:jraedemaeker@switch.be
Ray_Peterson_(rpeterso_-_(deleted))
Where can I find documentation or information about the various objects? I attended the Livelink SDK class, but this was stuff they never covered, so any help in this area would be greatly appreciated... I see lots of people saying to check this out and check that out... where do I check this stuff out?Thanks again,Michael Dailous
Application_Services_FUJITSU_(fuji_ware05_-_(delet
The information can be found when choosing the Builder Help in the Builder.This should launch your browser , displaying several sections. I guess it's second to find the info about your problem.Kind RegardsJohan RaedemaekerAsBuiltmailto:jraedemaeker@switch.be
Jose_Garcia
Hi,I'm not sure if this is what you're looking for but here's a Live Report that I use for determining what group a user belongs to. It works quite well.