Query Functions a User have Access in each Responsibility

Hello,
The query below gives in output the list of functions a user can access taking in account all the functions and menus exclusions.
Does anybody have an idea about how to modify this query to extract also which responsibility each function belongs to?
Thank you
BR
DV
SELECT function_name, menu_id
     FROM
          SELECT DISTINCT
               SELECT function_name
               FROM fnd_form_functions f
               WHERE f.function_id = me.function_id
               ) function_name, menu_id
          FROM fnd_menu_entries me
          START WITH
          me.menu_id IN
               SELECT r.menu_id
               FROM fnd_responsibility r, fnd_user_resp_groups rg, fnd_user u
               WHERE rg.responsibility_id = r.responsibility_id
               AND u.user_id = rg.user_id
               AND u.user_name = UPPER('USERNAME_TO_CHECK')
               AND (RG.END_DATE IS NULL
               OR RG.END_DATE > SYSDATE)
          CONNECT BY
          me.menu_id = PRIOR me.sub_menu_id
     WHERE function_name IS NOT NULL
     MINUS
     SELECT function_name, menu_id
     FROM
          SELECT DISTINCT
               SELECT function_name
               FROM fnd_form_functions f
               WHERE f.function_id = me.function_id
               ) function_name, menu_id
          FROM fnd_menu_entries me
          START WITH
          me.menu_id IN
               SELECT rf.action_id
               FROM fnd_responsibility r, fnd_user_resp_groups rg, fnd_user u, fnd_resp_functions rf
               WHERE rg.responsibility_id = r.responsibility_id
               AND u.user_id = rg.user_id
               AND u.user_name = UPPER('USERNAME_TO_CHECK')
               AND rf.responsibility_id = r.responsibility_id
               AND rf.rule_type = 'M'
          CONNECT BY
          me.menu_id = PRIOR me.sub_menu_id
     WHERE function_name IS NOT NULL
     MINUS
     SELECT ff.function_name, menu_id
     FROM fnd_responsibility r, fnd_user_resp_groups rg, fnd_user u, fnd_resp_functions rf, fnd_form_functions ff
     WHERE rg.responsibility_id = r.responsibility_id
     AND u.user_id = rg.user_id
     AND u.user_name = UPPER('USERNAME_TO_CHECK')
     AND rf.responsibility_id = r.responsibility_id
     AND rf.rule_type = 'F'
     AND ff.function_id = rf.action_id

Hi,
Perhaps you want CONNECT_BY_ROOT, an operator in CONNECT BY queries that repeats a value from the row with LEVEL=1 on each of its descendants.
Post some sample data (CREATE TABLE AS or INSERT statements) and the results you want from that data if you need help.

Similar Messages

  • Revoke PUBLIC access to package - find out which users have access

    We're in a situation where an audit required that we revoke PUBLIC access from a package.  The problem is that when we did this the functionality stopped working.  Does anybody know a quick way to tell what users have access to any package?

    Found answer

  • HT204053 Our family has several apple devices, iPad, touch, and now iMac, our original iTunes are all under a different apple id.  do we keep our own accounts even in cloud? do we all have access to each others media? (First time out with all this..)

    Our family has several apple devices, iPad, touch, and now iMac, our original iTunes are all under a different apple id.  do we keep our own accounts even in cloud? do we all have access to each others media? (First time out with all this..)

    There is no problem about using one ID for iTunes, iTunes in the Cloud and iTunes Match, and another for iCloud and its email and syncing facilities. This way you can all use the same iTunes account but have separate emails and calendars etc.

  • How can I see which roles or users have access to a table?

    How can I see which roles or users have access to a table?
    For a given table, how can I see the grants, who and what?
    Many thanks

    dba_tab_privs.
    Grantee can be a role or an user, as roles are fake users.
    Sybrand Bakker
    Senior Oracle DBA

  • In ACS 5.1 is there a way to show what users have access to a firewall?

    I have an auditor wanting a screenshot of all users that have acces to configure our firewall, I am unfamiliar with 5.1. Is there a way of running such a report on a paticular device?

    There is not report you can run in order to show which users have access to which devices, your best bet is to take a screenshot of your authorization policy which shows the permissions. Then take a screenshot of all the users that are present in the user groups, and then another screenshot the network device group of the firewalls.
    Hope that helps,
    Tarik Admani
    *Please rate helpful posts*

  • Does anyone know a tcode that shows what users have accessed a transaction?

    Hi everyone,
    Do any of you know if there is a transaction I could run that would allow me to enter any transaction code to show what users had accessed it on a particular day?
    Thanks for your help!
    Ciara

    >
    Ciara Gill wrote:
    > Hi Subhash,
    >
    > Thanks for your response! I was hoping not to have to use teh audit log as it means tracing every user and that woudl use up a lot of memory.
    >
    > Thanks
    >
    > Ciara
    ST03/ST03N - Recent user
    SM04/AL08- Current user
    but there is no any other way through you can find out each and every user history except SM20 as per my understanding.
    Regards,
    Subhash

  • Custom list 2013 user have access to only data that they entered

    I am using a custom list 2013 that is updated by InfoPath 2013 and I am using Workflow 2013. I have set the following options in the advance settings for the custom list to be the following:
    1. Read access-Read items that were created by the user,
    2. create and Edit access: create items and edit items that were created by the user.
    I basically want the users to only have access to the entries they made to the custom list.
    This seemed to work ok at first. Now some of the users can see files created by the other person.
    This is may first sharepoint 2013 project and I have been changing permissions on various groups due to what I am testing at the time with my user test accounts. Could this be the reason why my test accounts can see the data entered by each other?
    For the users to be able to enter data into a test custom list 2013 and only see the data they entered, should the users only have 'edit' permission access? Does the permission levels make a difference?
    Basically can you tell me what I can do so that the users can only see the data that they entered?

    Hi wendy,
    In SharePoint permissions, "Override List Behaviors" permission can  discard or check in a document which is checked out to another user, and change or override settings which allow users to read/edit only their own items.
    By Default, the Edit permission level doesnot contain "Override List Behaviors" permission, the Design permission level and the Full control permission level contains "Override List Behaviors" permission. So if your user account has Design
    permission or Full control permission, the user can see files created by the other person.
    Thanks,
    Eric
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Eric Tao
    TechNet Community Support

  • [Solved] Ensure all users have access to directory and files

    I'm writing a PKGBUILD thats installing to /usr/share/.../... and building the package is giving me permissions for files and parent folder as root:root and directory/file permissions as 755 and 644 respectively.  Because it looks like the files need to be alterable (at least temporarily), I'd like all users to be able to have the correct permissions for them.  This may cause problems for multiple users on the system because settings may get saved here but I'd still like to be able to do this because people with single-user systems can benefit from this (i.e. I'd be todd:users while someone named joe would be joe:users) to be able to have access.  I've heard of the nobody group before, can I do something like this?:
    chown -R nobody:users ${pkgdir}/usr/share/.../...
    Any recommendations?
    Last edited by Gen2ly (2012-06-19 05:36:33)

    You can give the files that need to be altered the permission 0666. If you want also to give users permissions to create new files and directories give the directories permissions 0777. Leave the owner as root:root ("nobody" is just another normal user, it is used to run system daemon that for some reason we do not want to run as root). That's said what you are trying is considered bad practise (be also aware that two different users could modify the same file at the same time with unpredicatble results). If it is not fixable in a proper way, you could install the whole package your home directory (without making an arch package), just alter the PATH and possible LD_LIBRARY_PATH). In any case if you decide to make an arch package like this, such a package will not be suitable for distribution.
    Last edited by olive (2012-06-17 21:25:38)

  • How do I download iPages so all users have access?

    I am able to purchase and download iPages onto my Macbook.  I am able to use iPages when I log in as administrator.  However, when my son logs in to his account on same computer, I do not see iPages anywhere. Please help school is in session and this child needs to get access on his own log in account. Thanks , Annie

    Ann,
    Full access is the default, in my experience. I've seen others here post that they had an Install Option for one account or all accounts. Are you sure that your son doesn't have access? Remember that you are looking for "Pages.app", not "iPages.app".
    You should find it in Macintosh HD, Applications, iWork '09. You should see it there from either account.
    Jerry

  • Do CC users have access to current programs after cancelling a subscription? The FAQs suggests we do

    One Q&A in your FAQs has attracted my attention.
    ~~~~~
    Do Creative Cloud members have access to previous versions of Creative Cloud apps?
    Yes. Creative Cloud paid members have access to a select set of archived versions of the desktop apps. Starting with CS6, select older versions of the desktop creative apps will be archived and available for download. Archived versions are provided "as is" and are not updated to work with the latest hardware and software platforms.
    ~~~~~
    Does this mean as a CC subscriber I can cancel my subscription at any time and walk away with a usable version of the 'select set' of software? Be it CS6 or what ever may be archived in the future at the time of subscription cancellation.

    Sjaani wrote:
    Does this mean as a CC subscriber I can cancel my subscription at any time and walk away with a usable version of the 'select set' of software? Be it CS6 or what ever may be archived in the future at the time of subscription cancellation.
    If only it was that easy.
    No, you must be a current "Creative Cloud paid member" to have access to any Cloud versions: current or archived.
    When you cancel your membership or allow it to expire then your access to all versions of the software ceases. That's the only exit strategy available.
    The idea is that, as a current subscriber, if you're using CC or some later version and you absolutely must access CS6 to complete a project or collaborate with someone then you can.

  • What is best way for 3 person family to share 200 gb music on 1 itunes account on two networked windows 7 PCs, have access to each others music on each PC but have own libraries. Goal is simplicity

    Currently, one windows 7 pc is upstairs in common area and is used most frequently.  Father's (me) windows 7 pc is downstairs and has 200gb music collection on internal hardrive.  PCs are networked together.  Wife and kids would like to buy and listen to itunes music upstairs.  They would be ok sharing a music library and it would not need to be huge.  They generally, but not exclusively don't care for my music.  I am eclectic and like their music as well as mine and would like access to it to be able to easily put it on my devices for family trips, etc and update playlists. 
    Ideally, I would like to be able to keep all of the music together on the same hard drive for managament purposes (organizing, replacing a computer, etc).  I don't trust them not to screw up my library (too many hours invovled in it already), so I'm assuming that they should have their own libraries.  These they would access upstairs and would also sync their devices on the upstairs computer.  I think both their libraries could be pointed to the harddrive on the downstairs computer where the music files currently reside.  When they played music from the upstairs computer, it would play from the downstairs computer across the network.  If they purchase music on the upstairs computer, I would like it to get downloaded on the downstairs computer with the other music files and not be downloaded onto the upstairs computer.  I would like to be able to rely on my library and the music files not getting messed up.  If friends and babysitters come over, they use the upstairs computer.  We've had a disaster before when it was just one computer, but the music was on an external hard drive and my wife launched itunes without turning on the external hard drive first and fried my library.
    The best I can come up with is their having their own libraries, on the upstairs computer, that reference all music files on the downstairs computer over the network.  Am I on the right track here?  How do I make sure their purchases go into and only into the music file downstairs?  Is there some other better option of having a separate itunes on the upstairs computer and storing their music separately upstairs?  How would I make sure to get copies of their music files from the upstairs computer also into my large music file downstairs, so I can keep one comprehensive collection of music all in one file.  This seems like it shouldn't be so very difficult in the 21st century.  I ought to be able to keep one comprehensive music file and one comprehensive library, even though my wife and child, who are less computer literate than me would like smaller, more personalized libraries and to purchase music on the convenient upstairs computer and even store their music on the upstairs computer accross a network.  I the old days, you could just dupe some of the CDs.  HELP!!!!!!!!!!!!!!!!!!!!!!  My wife is tired of waiting on me to resolve.

    Anything Downloaded with a Particular Apple ID is tied to that Apple ID and Cannot be Merged or Transferred to a Different Apple ID.
    Apple ID FAQs  >  http://support.apple.com/kb/HT5622
    SHARING iTunes MUSIC
    http://macmost.com/five-ways-to-share-music-in-itunes.html

  • Two iphones on the same itunes account can have access to each other's messages?

    can 2 iphones on the same itunes account to read each other's messages somehow?

    Yes, if both users are using the same apple id for imessage, you will see each other's message. 
    So use different apple id.

  • How to view all transactions that all users have access with in a year.

    Hello
    Does anyone know if they is a report that shows all users and the transactions they have used within a year? I have tried STAT3 and STAD and also SM20 however this does not give me all the users and their transactions used.
    I would be greatful if anyone can please help.
    Thank you
    Regards
    Bindi

    In SUIM you will not find this data. Explore ST03N.
    Edited : I doubt whether it will give you a year dat or not. Default logging is last 3 months including current month. The best way to do this is to create Z table to log all data during a year.
    Regards,
    Arpan Paik
    Edited by: P Arpan on Jan 19, 2011 5:59 PM

  • How to check if a user has access to a responsibility

    Hi,
    I have a user_id in the controller. How do I know if this user has a particular responsibility added to him or not. I guess there a specific proflle call which gives this information. Can you give me that information.
    Thanks,
    HC

    Create a vo with the following SQL passing userid as bind value:
    SELECT C.USER_NAME,
    B.RESPONSIBILITY_NAME,
    A.START_DATE,
    A.END_DATE
    FROM APPS.FND_USER_RESP_GROUPS_DIRECT A,
    APPS.FND_RESPONSIBILITY_TL B,
    APPS.FND_USER C
    WHERE C.USER_ID = A.USER_ID
    AND C.USER_NAME= :1
    AND B.RESPONSIBILITY_ID = A.RESPONSIBILITY_ID
    You will have the list of all the responsibilities of a user.
    Kristofer

  • Query to extract users and the applications they have accessed?

    I have been requested to list users and the external applications they have accessed (if they have that is!)
    I produced a list to show they had logged on using the object orasso.wwsso_audit_log_table$
    and I extracted the the applications they had access to using the objects orasso.wwsso_application_info_t and orasso.WWSSO_APPUSERINFO_T
    But what I need to find is whether the users have access the applications listed in.
    I have looked at alot of objects but nothing seems to spring out at me.
    Please can anyone help?
    Thank you
    Sue

    Hi Manoj,
    It is not possible in SAPB1.
    Try to Export to Excel File.
    check the thread,
    Re: Authorisations List
    Regards,
    Madhan.

Maybe you are looking for

  • Ipad won't automatically download iphone apps

    I have an iphone and an ipad.  Both sync with the same computer (an Imac).  I usually use my iphone to download apps while the ipad is powered off.  I want tthe iphone apps to automatically download to the ipad when the ipad is connected to my home w

  • Nokia 6280 Time Display problem

    The problem I am facing is that whenever I set time..it gets back to 00:00 again. I don't know what's wrong with this set.The time display always remains at 00:00. After setting time when I press return to main menu it gain turns to 00:00 . and that

  • Regarding  miro tcode copy to zmiro.

    Hi Experts, i got requirement like copy miro tcode to zmiro, i copied all includes  and all objects, finaly  transaction code is also created. while executing the program i got the dump, how to solve this dump , please give me an idea to solve this i

  • Having trouble downloading InCopy.Installer failed to initialize

    I am a freelance editor and need to install InCopy for an assignment.  I have downloaded it via a link that was sent to me by my publisher.  Every time I try to install the program, I get an error messages saying:  "Installer failed to initialize. Th

  • Mavericks iTunes shows a blank page for the App Store

    iTunes Store displays correct content for the Music, Movies and other tabs, but the App Store shows up blank. This is without a sign-in. Thought sign-in might help, but could not get past the sign-in panel . The same panel is re-displayed without any