Group name in which a particular user is member

Hi all,
I would like to be able to get the group name in which a particular user is a member.
I have created 2 groups: CHEFS and EMPLOYEES.
The Chefs are members of both groups. The "normal" Employee is the member only of EMPLOYEE group.
I have the navigation plsql portlet. And I would like to enable any links of this portlet only for chefs. At default these are disabled.
Now I make it with the function get_user_group:
=========================================
create or replace function get_user_group
v_username IN VARCHAR2,
v_groupname IN VARCHAR2
return boolean
as
var_groupname varchar2(50);
begin
select upper(name)
into var_groupname
from portal.wwsec_group
where id in (select group_id from portal.wwsec_flat
where person_id in (select id from portal.wwsec_person
where user_name=upper(v_username)))
and name=v_groupname;
return true;
exception
when no_data_found then
return false;
end;
=====================================
But the user needs DBA privileges to select on the tables of PORTAL-User.
I don't want to give this privileges to user.
Is there any other way to get the usergroup?
Regards
Leonid Pavlov

There are portal API's that look like they would do exactly what you are asking for. Take a look at the wwsec_api functions, specifically, is_user_in_direct_group or is_user_in_group in http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/PLSQL/DOC/PLDOC_9026/D:/PDK/pdkjuly/pdk/plsql/doc/pldoc_9026/index.html.
These API's are specific to 9.0.2.6. You'll have to ask someone who knows other versions if you are running something else.

Similar Messages

  • Groups are not displaying in the user's member of tab

    Hi ,
    We have a issue,
    After mapping any AD  group in CMC,the groups and users are displaying  in the cmc list. but when we go to the properties of the user and member of option ,the groups are not displaying .
    After restarting the CMS every thing works fine.
    Every time after adding a new user we should restart the CMS, it is very difficult for  us as number of users are working on this .
    We are using number of AD groups.
    Is there any resolution for this with out restarting the  CMS.
    Thank you  in advance.
    Environment -
    BO XI3.1,
    LDAP authentication.
    Thanks & Regards,
    Collin.

    The LDAP graph is responsible for showing the membership when viewing the user properties, an issue like this would indicate the graph is not auto updating. It normally builds when starting the CMS then every 15 minutes or so for new users (depending on system activity). It shouldn't lose any info (if it does this indicates a caching or communication problem with AD). There is a graphtimeout setting in the registry (search SAP notes) if this were disabled then it may cause similar symptoms.
    I'm not aware of any bugs in 3.1 causing this behavior so you may need to open a case with support (authentication team) to help troubleshoot.
    Regards,
    Tim

  • LDAP Query for particular user account in local Administrators group on All Enabled Computer Accounts

    Need to query on all enabled computer accounts that have a particular user account present in the local Administrators group.
    Ldap query is best, because not all our machines have SCCM client
    Thanks for any help you can provide. Lisa

    Ya, I have 41800+ computer accounts in my directory. I think that option is not feasible :) Thanks for your reply.
    I can use SCCM to do this too, but only for those that the client is running on and which are online. Thanks again.
    Hope is not all lost; a scripting solution is still possible.  The difference is instead of running a central script to pull info from all computers, you let the computers report back to you with the info.
    If I were you, I'd do the following:
    1) Create a file share and adjust the permissions so that "Domain Computers" have "Modify" Permissions.
    2) Create a script similar to the 2nd link I posted above, with a bit of adjustment:  at the end of the script, write the information to the file share created in (1), and name the file
    ComputerName.txt
    3) Use Group Policy Preference Scheduled Task to deploy the script, and make sure it only runs once.
    4) Happily wait for the results to come back :)
    The main benefit of this approach is you're not restricted by the computer connectivity at the moment you run the script.  This is especially true if you have many mobile computers in your environment.  Just wait for a reasonable time (they all need
    to come back to the mother ship once a while don't they?) and the results will show up in the file share you created.
    Cheers.

  • How to identify column name in ALV tree when user clicks a particular field

    Hi All,
    In My requirement i am displaying ALV Tree.
    In Which When the user clicks on a particular header column it should navigate to other transaction.
    Now the issue is it is navigating to other transaction when we click on any column of the header row.
    But, the user requires only for particular column .
    Is there any method  to catch the field name in CLASS 'CL_GUI_ALV_TREE'.
    Regards,
    Bhanu.R

    Check out for CUCOL system field.
    Regards,
    Lalit Mohan Gupta.

  • BAPI -  user last modified Name, Date and Time in SU01 of a Particular User

    HI Experts,
    After searched a lot in SDN , i am posting this thread,
    I want to know any  Standard BAPI  to give LAST modified User name , time and Date in SU01 of a particular User.
    I checked * BAPI_USER_GET_DETAIL* , its giving LAST modified  time and Date in SU01, But I want Last modified user name as well.
    I have 2 questions related with the above scenario,
    1) Which BAPI gives the details of LAST modified User name , time and Date in SU01 of a particular User.
    2) Any Table is there to give details of LAST modified User name , time and Date in SU01 of a particular User for a time period ,
    For eg : 1 month, if i would have set the time line, it should give the three details .
    Regards,
    Saravana.S

    Hi,
    I am not sure, if there would be any BAPI particularly for giving such particular information. Even if you can, you  might have to call 2 BAPIs, one for finding the list of such users modified within 1 month eg., and then getting the mod date and mod time.
    BAPI_USER_GETLIST - this can be used for searching.. but tricky
    then you have to call another bapi for getting the details.
    One option is you can create a new Z BAPI using the table and get the results.
    Regards,
    Amit Mittal.

  • Type the name and password of a user in the "(null)" group to allow this.

    To connect to wifi while in the recovery partition, I'm asked to authenticate the wlan's certificate, and in order to do that I'm asked for "the name and password of a user in the "(null)" group" to make changes to the Certificate Trust Settings. Anyone know what or which user may this be?
    I'm not able to pass from the initial apple screen when I boot, so I wanted to repair or reinstall Lion, but in order to do that I need to connet to the WLAN to download it.

    Hi, I called Apple Support this day, and the answer is that enterprise WPA wireless is NOT supported by Lion Internet Recovery.
    You can find the supported configurations and protocols on Apple site:
    http://support.apple.com/kb/HT4718?viewlocale=en_US

  • ACE: Read users under a particular User Group

    Hi Experts,
                        We have a requirement, in which we want a particular view to be displayed only to few particular users, who are present in some Custom Defined ACE User Groups.
      Can someone please provide me with the Function modules/ Coding part, by which i can get all the users of a particular User Group of ACE (say 'ZCRMADMIN' in our case), that we define in SPRO->Basic Functions -> ACE.
    Thanks in advance,
    Rohit

    Hello, Rohit!
    First of all read these blogs:
    The concept and implementation of CRM-ACE
    Configuration & Implementation of CRM Access Control Engine (ACE)-Part 1
    Then in this blog there are code samples:
    Configuration & Implementation of CRM Access Control Engine (ACE)-Part 2
    If you will steel have any questions, post it here, I'll try to help you.
    Best regards,
    Artur Litvinov.

  • User and group names truncated with ls

    Hello,
    When using the 'ls -l' command the resulting list truncates user and group names that are longer than 8 characters.
    Is this a know issue?
    I'm running Mac OS 10.4.10.
    Thanks,
    Anthony

    Jun T. wrote:
    If a program like "ls" wants to know the username corresponding to the uid, it must call a library function of the operating system. But there are two library functions, one gives the correct username and the other truncates the username.
    The basic library function is getpwuid(3) which returns the correct username.
    Hello Jun,
    I ran a search using Xfind (Rixstep) on /bin for 'userfromuid' and /bin/ls was listed as I might of expected.
    Also, /bin/ls was also listed when 'getpwuid' was used as a search Key.
    Peeking further into /bin/ls further with Xstrings (which is Rickstep's "adaptation" of the "strings' tool" ) reveals the string '_ getpwuid'.
    Does this mean that at some point the 'ls' command can call the getpwuid() directly under some circumstances rather than going through userfromuid() which relies on the cache you mentioned?
    The problem is the size of the table; userfromuid() allocates only 8
    characters for each username (the number 8 comes from UT_NAMESIZE in /
    usr/include/utmp.h), and truncates the username if it is longer. This
    may be "fixed" in a future version; or it may not be "fixed" to keep
    backward compatibility. I'm not sure.
    I've heard that utmpx.h has 'UTXUSERSIZE' which is defined as 32. Does not that allow for user and group names larger than 8 characters?
    By the way, I can't find the directory usr/include/utmp.h on my drive.
    Is there a way to reset or redefine this 'UT_NAMESIZE' field to more than 8 characters wherever the userfromuid() function stores it?
    The commands "users", "who", and "w" read the file /var/run/utmp, in
    which truncatd usernames of the currently logged-in users are saved.
    Does some command initially call the function as 'ls', userfromuid(), to result in truncated names being saved in file /var/run/utmp as well?
    I think there are many programs which depend on this fixed-width utmp
    file, so it may not be "fixed" in a future version. "
    I believe there are third party tools which rely on the userfromuid() call which require this bug to be fixed in order to display accurate user and group name data.
    Thanks for your informative reply,
    Anthony

  • Report Manager problem: The user or group name 'BUILTIN\Administrators' is not recognized. (rsUnknownUserName)

    Hello,
    I have a big  problem with Reporting Services 2005 working on Windows 2003 Server.
    RS work as Network service, on subdomain reporting.mydomain with SSL wildcard certificate *.mydomain,
    Anonymous access: disabled and basic authentication: enabled
    ReportManager and reportServer has defualt virtual folders  (/reporting, /reportserver)
    My problem is:
    1) I can't manage security roles and site settings with report maanger. when I try assign roles to new user or group I get followng error:
    "The user or group name 'BUILTIN\Administrators' is not recognized. (rsUnknownUserName) Get Online Help"
    when i try to execute reports in report manager, parameters controls are not displayed correctly (very simple text boxes) and I can see:
    The selected report is not ready for viewing. The report is still being rendered or a report snapshot is not available. (rsReportNotReady)
    and I can't see my report in browser (IE 6.0) but only export to PDF, Excel...
    other functionality are working  fine i.e upload new files, creatign folders....
    2) Also my reportserver virtual folder does not work correctly.
    When I navigate to mydomain/reportserver I can see content of this virtual folder, than when I navigate to ReportService.soap i can see normal ReportServer view
    reporting.mydomain - /Reportserver/
    [To Parent Directory]
           Montag, 10. April 2006    16:31        <dir> bin
      Dienstag, 6. September 2005    01:12       488278 Catalog.sql
      Dienstag, 6. September 2005    01:12        14738 CatalogTempDB.sql
          Freitag, 21. April 2006    19:45        10555 Copy of rsreportserver.config
          Freitag, 14. April 2006    17:29           76 global.asax
           Freitag, 15. Juli 2005    01:12        26582 ModelGenerationRules.smgl
           Montag, 10. April 2006    16:31        <dir> Pages
           Montag, 10. April 2006    16:31        <dir> ReportBuilder
            Montag, 13. Juni 2005    14:07          143 ReportExecution2005.asmx
            Montag, 13. Juni 2005    14:06       196337 ReportingServices.wsdl
            Montag, 13. Juni 2005    14:07          131 ReportService.asmx
            Montag, 13. Juni 2005    14:07          131 ReportService.soap
            Montag, 13. Juni 2005    14:07          139 ReportService2005.asmx
          Dienstag, 13. Juni 2006    20:01        10580 rsreportserver.config
            Montag, 13. Juni 2005    14:07        11845 rssrvpolicy.config
           Montag, 10. April 2006    16:31        <dir> Styles
           Freitag, 17. Juni 2005    01:09         2673 web.config
    but me reports are not displayed correctly, I can run reports but top bar with parameters, export and print function are not displayed in correct format.
    (simple textboxes, and icons)
    reporting.mydomain/ReportServer - /
    Microsoft SQL Server Reporting Services Version 9.00.1399.00
    I think it is security issue. What schould i do to solve this problems?
    Wojtek

    Hi Wojtek
    I just wanted to know if you found a solution for part (1).  I just recently encountered the problem where:
    "when i try to execute reports in report manager, parameters controls are not displayed correctly (very simple text boxes) and I can see:
    The selected report is not ready for viewing. The report is still being rendered or a report snapshot is not available. (rsReportNotReady) "
    However all my reports are run from the most recent data.  The rsReportNotReady message appears in Report Manager but not the Report Server interface; the latter is able to render the reports.   But both have incorrectly displayed textbox inputs.
    Thanks
    nemo

  • My wife and I each have our own apple ID's which we use on our own iPhones and iPads. We share an iMac. Is there a way of enabling Facetime on the iMac to accept calls to either of our IDs without the need to login as that particular user?

    My wife and I each have our own apple ID's which we use on our own iPhones and iPads. We share an iMac. Is there a way of enabling Facetime on the iMac to accept calls to either of our IDs without the need to login as that particular user?

    no, when using facetime you log in with the apple id you want people to reach you at, so unless you both agree to share one apple id for all the facetime you do, it will be necessary for you to logout and login each time you use the application.

  • LabVIEW 8.0:: How to get the group name of a user logged to a NI Security Domain?

    Hello all,
    I am using LabVIEW 8.0 PDS.
    I created a new local domain called "MyDomain" in the "NI Domain Account Manager" . I added a new User called "MyUser" and a new group called "Maintenance". I set "MyUser" to be a member of the "Maintenance" group. Then, I configured LabVIEW to invoke the login dialog at start-up in order to log "MyUser" with the correct password.
    I would like to get the group name of the current user logged programmatically in a VI. I tried with the VI Server >> Application >> Security properties and methods and also with the properties and methods of the NI Security Class but it seems to be not so simple as I believed at start.
    I do not find any informations or KB on this (all the documents I found deal with LV DSC or TestStand).
     The final goal is to be able to manage a list of user for my application. Each user is a member of a group ("Administrator", "Operator", "Maintenance") and depending on the group, the user can or cannot access to some parts of the application.
    Thanks for your help.
    Matthieu
    Eurilogic

    Re,
    Here is a screenshot of this functions...
    If you really own LV DSC 8.2 the best thing to do is to reinstall it.
    Regards, 
    Message Edité par Richard K. le 04-02-2007 04:00 AM
    Richard Keromen
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    >> Découvrez, en vidéo, les innovations technologiques réalisées en éco-conception
    Attachments:
    security.jpg ‏3841 KB

  • How to get a organization name for a particular user using API's

    Hi alll,
    How to get a organization name for a particular user using API's

    You need to do something like this:
    SearchCriteria criteria = new SearchCriteria("User Login", "XELSYSADM", SearchCriteria.Operator.EQUAL);
                   UserManager usrService = oimClient.getService(UserManager.class);
                   Set<String> retAttrs = new HashSet<String>();
                   retAttrs.add(UserManagerConstants.AttributeName.USER_ORGANIZATION.getId());
                   List<oracle.iam.identity.usermgmt.vo.User> users = usrService.search(criteria, retAttrs, null);
                   System.out.println("ORG KEY :: " + users.get(0).getAttribute("act_key"));

  • Authority Check at the T.Code level for the user in particular User Group

    Hi Friends,
    I have created a ZREPORT and assigned this report to a ZTRANSACTION CODE.
    Need to give Authority Check at the T.Code level for the user in particular User Group.
    I have searched in SCN, but not get suitable pages.
    How to solve this?
    Regards,
    Viji.

    Hi Viji.
    Saha way is actual way for authority tcode but user authority in TCODE:- SE38 he/she can run report(ZREPORT) wise program is run is no authority check.
    Another way is you have also check authority in program level.
    DATA: T_ROLE_USERS TYPE STR_AGRS OCCURS 0 WITH HEADER LINE.
       INITIALIZATION.
      CALL FUNCTION 'ESS_USERS_OF_ROLE_GET'
        EXPORTING
          ROLE       = 'ZROLE''  " Role define
        TABLES
          ROLE_USERS = T_ROLE_USERS.
      READ TABLE T_ROLE_USERS WITH KEY UNAME = SY-UNAME.
       IF SY-SUBRC NE 0.
       RETURN.
       ENDIF.
    Thanks & Regards
    Rahul

  • How to make available certain features available to a particular user group in APEX.

    Hi
    I am trying to make available certain features like (updating/viewing some fields) to a particular set of users. Our requirement is to use SSO for signing in. So when a particular user logs in she/he will be allowed to update or view only certain fields depending on the job role or designation.
    E.g If an analyst logs in she/he would not be able to edit certain fields. Those should appear to her/him as read only.
    I would appreciate if a step-by-step guide is provided using APEX since I haven't done any such things earlier.
    Regards
    Saumyadip Sarkar.

    Powershell (or vbscript if you want to be old school).
    You can trigger a powershell script which will remove the offending user(s) easily enough with out resorting to a TOLDAP pass.  Nearly any script type thing would work but powershell is preferred.  It can be triggered separately from the TO AD stuff and will take multiple objects to run in one pass if you can construct the command line (or create a text file and feed it in).
    Otherwise, TOLDAP is the way to write to AD...
    Peter

  • The user or group name is not recognized. (rsUnknownUserName)

    SQL 2008 R2 Reporting Services
    When trying to add a group from Active Directory onto the reporting services security we get the following error
    The user or group name 'groupname' is not recognized. (rsUnknownUserName)
    We are able to add users from Active Directory this only fails on group.
    Jason Spencer

    Hi Jason,
    The error “The user or group name<name> is not recognized (rsUnknowUserName)” means the Report Server cannot find the user from domain or local users or groups of Report Server. Reporting Services stored users with users’ SID. After we tyoe a username
    in the username textbox, the Reporting Services will user the method “LookupAccountName” in Window API to get the users’ SID. If the API cannot get the SID of the user, Reporting Services will throw the expression “rsUnknowUserName”.
    Here has some threads that similar to yours, and there have solved the issue, you can try the solutions, for more information, please see:
    http://social.technet.microsoft.com/Forums/en/operationsmanagerreporting/thread/64ac1fa7-4535-4369-9bf6-1323e00be543
    http://social.msdn.microsoft.com/forums/en-US/sqlreportingservices/thread/fbc2728e-425a-4666-9810-1300b7881ee6/
    Hope this helps.
    Regards,
    Charlie Liao
    Charlie Liao
    TechNet Community Support

Maybe you are looking for

  • Sharepoint Foundation 2010 Error,

    Our portal get this error about once a week, I cannot figure out the root cause, only recycle the Sharepoint -80 could help. These are error logs I found here:C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS Application er

  • A Solution for freeze at Connect to iTunes & iPhone not being recognized:-)

    Had a nightmare last night whilst updating my 3GS to IOS 4 on a vista PC, really thought I'd broken my phone, which refused to talk to iTunes or reboot. It just constantly displayed a USB plug with Connect to iTunes, Here's how I finally resolved it.

  • Photoshop cs3 extended upgrade to cs4 (non extended)?

    First of all, is it possible for me to upgrade my cs3 extended version of photoshop to cs4? I have other programs from adobe on here such as dreamweaver, indesign and illustrator, so do I have to upgrade the whole suite or can I just upgrade the one

  • Why can't I access extensions thru Add-ons Manager?

    I just upgraded to version 8 on WinXP. Flagfox extension died on start up, so I tried to uninstall and re-install as suggested. However, Add-ons Manager says I have no Extensions, but Tools Menu lets me access and configure a number of extensions.

  • Consumption report for nn stockable material

    hi i want to see the consumption report for non stockable material like A,K,