How to find which users only have a single and a specific responsibility

Hi,
I have a requirement in my organization that a password restriction have to be implemented. After implementing that, for some users, the password date will have to be nulled out, so that when they login, they will be forced to change their password following that new password rule.
Oracle's "CP SQL*Plus Expire FND_USER Passwords" concurrent program can not be used as that will expire all the users password at the same time.
For this, I have to find all the users which have a certain responsibility (check viewing responsibility) and only that responsibility. First day password date null out will be implemented for them only. For the other users (who have check printing responsibility) the password will be nulled out some other day.
As I am using the following query, I see some of the users have multiple responsibility. How do I find out the users who have only a certain responsibility and nothing else?
select usr.user_name, res.responsibility_name
from apps.fnd_user usr, apps.FND_USER_RESP_GROUPS_DIRECT usrrep, apps.fnd_responsibility_tl res
where usr.user_id=usrrep.user_id
and usrrep.responsibility_id=res.RESPONSIBILITY_ID
and usr.end_date is NULL
group by usr.user_name,res.responsibility_name
Any suggestion, idea will be very much appreciated.

Hi,
I have a requirement in my organization that a password restriction have to be implemented. After implementing that, for some users, the password date will have to be nulled out, so that when they login, they will be forced to change their password following that new password rule.
Oracle's "CP SQL*Plus Expire FND_USER Passwords" concurrent program can not be used as that will expire all the users password at the same time.Use the same update statement in $FND_TOP/sql/AFCPEXPIRE.sql and include/exclude the usernames you want.
For this, I have to find all the users which have a certain responsibility (check viewing responsibility) and only that responsibility. First day password date null out will be implemented for them only. For the other users (who have check printing responsibility) the password will be nulled out some other day.
As I am using the following query, I see some of the users have multiple responsibility. How do I find out the users who have only a certain responsibility and nothing else?See (How To Find Out Which Responsibility Was Granted To A Specific User? [ID 304687.1]).
Or, see old threads for similar topic (you will find many queries which should be helpful).
http://forums.oracle.com/forums/search.jspa?threadID=&q=Users+responsibilities+query&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
select usr.user_name, res.responsibility_name
from apps.fnd_user usr, apps.FND_USER_RESP_GROUPS_DIRECT usrrep, apps.fnd_responsibility_tl res
where usr.user_id=usrrep.user_id
and usrrep.responsibility_id=res.RESPONSIBILITY_ID
and usr.end_date is NULL
group by usr.user_name,res.responsibility_nameTry this query ..
SQL> select fu.user_name, count(frvl.responsibility_name)
from fnd_user_resp_groups_direct furgd, fnd_responsibility_vl frvl, fnd_user fu
where furgd.responsibility_id = frvl.responsibility_id
and fu.user_id = furgd.user_id
and (to_char(furgd.end_date) is null
or furgd.end_date > sysdate)
group by fu.user_name
having count(frvl.responsibility_name) = 1;Thanks,
Hussein

Similar Messages

  • How to find out users who have answered security questions

    Is there any report where we can find out users who have answered security questions.
    Please reply back to this.

    This might help you:
    Define a task template, reference the UserQuestionReport task definition:
      <TaskDefinitionRef>
        <ObjectRef type='TaskDefinition' id='#ID#TaskDefinition:UserQuestionReport' name='User Question Report' displayName='UI_REPTS_XML_USER_QUESTION_TITLE'/>
      </TaskDefinitionRef>Define desired variables
          <Attribute name='attrListField'>
            <List>
              <String>accountId</String>
              <String>policy</String>
              <String>loginInterface</String>
              <String>questions</String>
            </List>
          </Attribute>
          <Attribute name='attrMapField'>
            <Map>
              <MapEntry key='accountId' value='UI_REPTS_XML_REPORT_ATTR_ACCOUNTID'/>
              <MapEntry key='loginInterface' value='UI_ATTR_LOGIN_INTERFACE'/>
              <MapEntry key='policy' value='UI_SERVICEMODIFY_JSP_ACCOUNTPOLICY'/>
              <MapEntry key='questions' value='UI_ATTR_MIN_QUESTION_UNANSWERED'/>
            </Map>
          </Attribute>and the rest of the task template for a report definition.
    Hth
    Edited by: nickoarg on Feb 5, 2009 1:57 PM

  • How to find which authentication used to site collection and site using powershell

    Hi,
    How to find  how-many web app, sitecollection, site used Windows authentication,claim authentication and classic, secure store authention , adfs authentication using powershell code in sharepoint 2013.
    If sites are used adfs authentication how to find which email id used for that.
    Thanks,

    Authentication is only defined at the Web Application level, and the only valid auth methods are Classic (Windows (Basic/NTLM/Kerberos)), Claims (Windows (Basic/NTLM/Kerberos)), FBA Claims, , SAML Claims (ADFS), and Anonymous.
    You can find out what authentication scheme(s) are enabled via:
    $wa = Get-SPWebApplication http://webApp1$wa.IisSettings["Default"] #replace with the zone name you're interested in
    The output will look similar to this:
    PS C:\Users\trevor> $wa.IisSettings["Default"]
    AuthenticationMode : Forms
    MembershipProvider : i
    RoleManager : c
    AllowAnonymous : False
    EnableClientIntegration : True
    ServerBindings : {Microsoft.SharePoint.Admini
    stration.SPServerBinding}
    SecureBindings : {}
    UseWindowsIntegratedAuthentication : True
    UseBasicAuthentication : False
    DisableKerberos : True
    ServerComment : SharePoint
    Path : C:\inetpub\wwwroot\wss\Virtu
    alDirectories\spwebapp180
    PreferredInstanceId : 42768054
    UseClaimsAuthentication : True
    ClaimsAuthenticationRedirectionUrl :
    UseFormsClaimsAuthenticationProvider : False
    FormsClaimsAuthenticationProvider :
    UseTrustedClaimsAuthenticationProvider : False
    UseWindowsClaimsAuthenticationProvider : True
    OnlyUseWindowsClaimsAuthenticationProvider : True
    WindowsClaimsAuthenticationProvider : Microsoft.SharePoint.Adminis
    tration.SPWindowsAuthenticat
    ionProvider
    ClaimsAuthenticationProviders : {Windows Authentication}
    ClaimsProviders : {}
    ClientObjectModelRequiresUseRemoteAPIsPermission : True
    UpgradedPersistedProperties : {}
    So on this Web Application in the Default Zone you can tell I have Windows Claims enabled, not using Kerberos (so using NTLM), and Trusted (SAML/ADFS) is not enabled, neither is Forms or Anonymous.
    Trevor Seward
    Follow or contact me at...
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • How to find which users has used external scripting

    I want to find out the users who used the scripting for doing any mass changes activity.

    Hi Murphy;
    Please check which user has which forms open? and Re: how to determine which forms are currently open?
    Hope it helps you in your issue
    Regard
    Helios

  • How to find which user submitted concurrent request

    Dear all,
    How to find out which user has submitted concurrent request with concurrent id. There is once column called requested by in fnd concurrent requests table, is it the user id who submitted that request ?
    Regards,
    Charan

    How to find out which user has submitted concurrent request with concurrent id. https://forums.oracle.com/forums/search.jspa?threadID=&q=fnd_concurrent_requests+AND+fnd_user&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    There is once column called requested by in fnd concurrent requests table, is it the user id who submitted that request ?Yes.
    http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=FND_CONCURRENT_REQUESTS&c_owner=APPLSYS&c_type=TABLE
    http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=FND_USER&c_owner=APPLSYS&c_type=TABLE
    Thanks,
    Hussein

  • How to find which user has killed a particular job in CPS?

    Hi All,
    I am new in CPS. I want to find the user who has killed a particular job in CPS?
    Thanks in Advance.
    Avdhesh

    Hi  Gerben,
    Thanks for the reply.
    But I noticed when I  killed a job and checked in the  last modified by option I didn't  find my user name there. It was displaying the user who had modified that job definition last time.
    Thank you
    Avdhesh

  • How to find the user who have restarted the schedular.

    Hi,
    We are using the cron trigger schedular to initiate the BPEL process.
    We use the oc4jadmin user to login into the em console of SOA.
    Somebody has restarted the schedular on production server which we can see in the log file.
    But is there any way to find that who is the exact user who has restarted it. I know the user has login with the oc4jadmin but can we check who the machine user(machine profile of that user).
    Becasue if we know that this was the machine user who has login into the EM console we can find it.
    Please help.l
    Thanks

    Hi,
    If the user has used the manage option to delete the contents of the DSO then the changed by field will be updated by the users name. In case a program is used for the deletion then it wont be the case.
    Regards
    Govind.

  • How to find which user is in the planning book XYZ?

    Hallo,
    we are using SCM APO 5.0. and have defined "key-figure-specific Lock" as our locking logic.
    I need a program to get all users who are in a special planning book. Normally I can read this information from lock entry list (SM12). But with this locking logic the entry list looks quite different. Has someone an idea?
    Thanks in advance
    Yong

    Yong,
    There is a macro ACT_USER() which returns the user in a particular planning book. You can make it as a directly executable macro and schedule it using mc8e.
    Hope this works.
    Regards,
    Abhi

  • How to find which user has access to Discoverer Reports?

    I need to find users having access to Discovered reports using a script. How can I do that?

    Hi,
    You need to give more details...
    Are you using oracle applications? are the users database users?
    If you use oracle application you can use the following:
    SELECT DISTINCT Disco_Docs.Doc_Name "Discoverer Workbook"
    ,Trunc(Disco_Docs.Doc_Created_Date) "Workbook Create Date"
    ,CASE
    WHEN Instr(Disco_Docs.Doc_Created_By
    ,'#') = 0 THEN
    Disco_Docs.Doc_Created_By
    WHEN Instr(Disco_Docs.Doc_Created_By
    ,'#') > 0
    AND Instr(Disco_Docs.Doc_Created_By
    ,2) = 0 THEN
    (SELECT Fu.User_Name
    FROM Fnd_User Fu
    WHERE Fu.User_Id = Substr(Disco_Docs.Doc_Created_By
    ,2
    ,5))
    ELSE
    NULL
    END "Workbook Owner/Creator"
    ,Disco_Users.Eu_Username
    ,CASE
    WHEN Instr(Disco_Users.Eu_Username
    ,'#') = 0 THEN
    Disco_Users.Eu_Username
    WHEN Instr(Disco_Users.Eu_Username
    ,'#') > 0
    AND Instr(Disco_Users.Eu_Username
    ,2) = 0 THEN
    (SELECT Fu.User_Name
    FROM Fnd_User Fu
    WHERE Fu.User_Id = Substr(Disco_Users.Eu_Username
    ,2
    ,5))
    ELSE
    (SELECT Resp.Responsibility_Name
    FROM Fnd_Responsibility_Tl Resp
    WHERE Resp.Responsibility_Id =
    Substr(Disco_Users.Eu_Username
    ,2
    ,5))
    END AS "Shared Name / Responsibility"
    FROM Eul_Us.Eul5_Documents Disco_Docs
    ,Eul_Us.Eul5_Access_Privs Disco_Shares
    ,Eul_Us.Eul5_Eul_Users Disco_Users
    WHERE Disco_Docs.Doc_Id = Disco_Shares.Gd_Doc_Id(+) AND
    Disco_Users.Eu_Username(+) NOT IN ('EUL5', 'PUBLIC') AND
    Disco_Users.Eu_Id(+) = Disco_Shares.Ap_Eu_Id
    Tamir

  • How to find which user using Grid?

    Grid contril 10.2.0.5
    I have over 50 users in Grid, how can I figure out who is online?

    Run the below queries to see all connected users in the Grid database...
    set lines 100 pages 999
    col ID format a15
    select username
    , sid || ',' || serial# "ID"
    , status
    , last_call_et "Last Activity"
    from v$session
    where username is not null
    order by status desc
    , last_call_et desc
    --See the users current sql
    Select sql_text
    from v$sqlarea
    where (address, hash_value) in
    (select sql_address, sql_hash_value
    from v$session
    where username like '&username')
    --Time since last user activity
    set lines 100 pages 999
    select username
    , floor(last_call_et / 60) "Minutes"
    , status
    from v$session
    where username is not null
    order by last_call_et
    Hope this helps...
    Regards,
    http://www.oracleracexpert.com
    Click here to [Click here to remove parameter from spfile|http://www.oracleracexpert.com/2009/09/create-spfile-from-pfile.html]
    Click here to learn [SPFILE and PFILE in Oracle|http://www.oracleracexpert.com/2009/11/oracle-spfile-and-pfile.html]
    Click here for [Using UTL_MAIL in Oracle 10g |http://www.oracleracexpert.com/2009/11/send-email-using-utlmail-in-oracle-10g.html]

  • How to find which user is using the index?

    Hi All,
    I have an index named 'CTXT_ITEM_CODE' . The Index _type is Domain. When i try to drop this index its telling ORA-00054: resource busy and acquire with NOWAIT specified error
    now i need to find out which session is using this index, so that i can kill it and drop the index.
    Thanks

    SELECT c.owner,
           c.object_name,
           c.object_type,
           b.SID,
           b.serial#,
           b.status,
           b.osuser,
           b.machine
      FROM v$locked_object a, v$session b, dba_objects c
    WHERE b.SID = a.session_id AND a.object_id = c.object_id
    AND c.object_name='CTXT_ITEM_CODE';
    ALTER SYSTEM KILL SESSION '<sid, serial#>'

  • How to find which user added adhoc approver in a Shopping cart

    Hi Gurus,
    We all know that its possible for the approvers in the SC approval chain to add ad hoc approvers.However i need to know , how we can trace the user  who added  this adhoc approver in the shopping cart..
    Thanks in advance

    To be frank, i donot know about ADHOC agent means..But cannot we get Log of Workflow.
    Yes. We can get log of the workflow. Please think, in that direction.
    I think, your issue will get resolved.
    Balaji.T

  • How to find which component has a partial trigger to a specific component

    Hi,
    Not sure if this question has been posted earlier. Apology for repeating, but I need to know how to do this and could not find the answer by searching the forum.
    I want to know if there is a way to find out what all components that use a specific component in its partial trigger. So lets say I have two selectoneChoice.
    <af:selectOneChoice id="soc1" autoSubmit="true"
    value="parent"
    />
    <af:selectOneChoice id="soc2" autoSubmit="true"
    value="child1" partialTriggers="soc1"
    />
    <af:selectOneChoice id="soc3" autoSubmit="true"
    value="child2" partialTriggers="soc1"
    />
    There is the soc2.getPartialTriggers() method that gives on the partialtriggers on soc2. However, I want to know how can soc1 know who all are using it as their partialTriggers.
    Appreciate any clues and help.

    because i want to add a common valuechange listener method in my backing bean on the parent component that will update all its child components with a specific same value.

  • How to make an user to have right to approve only one specific STS?

    In our BPS STS, we assign user A both on the highest level of one STS hierarchy B and on the lower level of another STS hierarchy C. And because in our real business planning process, A should only have right to approve STS B and can be approved by others in STS C, so we grant authorization "R_STS_SUP" to this user A, but then he has all the authorizations for approving or rejecting plans in both B and C. How to make this user only have authorization to approve STS B? Is there someone can kindly solve this problem? Thank you very much.

    Try to modify tunguska BSP application, OnInitialization handler for page frame.htm contains next code:
      AUTHORITY-CHECK OBJECT 'R_STS_SUP'
               ID 'ACTVT' FIELD '16'.
      IF sy-subrc NE 0.
        application->with_tree = ''.
      ELSE.
        application->with_tree = 'X'.
      ENDIF
    Try to add check for subplan/planning session here and in the case of B and C hierarchy set application->with_tree to blank value.

  • How to find the user exit for order cancellation

    I want to find the user exit for order cancellation. And also to ensure that no one amends the order once the canellation has taken place. The cancellation shall be deemed to be affected only if the vendor has confirmed the acknowledgement of the order cancellation.
    I have got a Zreport where this order should not come as open order item.
    Please tell me the method of finding the users exit for order cancellation and stop the order from getting modified. And also how to find the tables in which the data has to be updated that the order has to be cancelled.
    In the PO header i want an additional tab <cancellation> by which the user by the help of userid and password should be able to cancel the order. An order once cancelled cannot be undone. A new order has to be placed. The new order can be placed refencing the cancelled purchased order.
    My client has got a very stringent requirement. In the past cancelled order has been undone and caused lot of problems.
    Regards.

    hi
    pls tell me t.code so that i will send all user exits related to that particular t.codes
    Thanks & Regards
    phaneendra

Maybe you are looking for

  • Counting Integration scenario in SAP XI

    Hi All, Is it possible to count all message flow (Sender+receiver combination) available in system. I have one case where i want to find all message flow available in XI (not in SXMB_MONI). I have following question: 1> Can I use Interface mapping fo

  • TABLE function to simulate parameterized view

    Hi all, Since view can not have parameters, I tried to used stored procedure to return ref cursor then used TABLE function in select statement to simulate a view with parameters, since it's easy to pass parameters to a stored procedure. The idea is l

  • Reg:Special GL Indicator Control

    HI Gurus, What is the user of Special GL Indicators and what it control? regards JK Rao

  • Struts StyleId in Mozilla

    I have <html:form styleId="name" action=""> in my JSP. When I use this styleId for accessing the elements of my Form, it is working well in IE, but it is not working in Mozilla Firefox. Can anyone help me out?

  • OAF: Error:Developer Mode Error: Cannot Display Page

    Hi Everyone, When i click on button it shows me the below error: "You cannot complete this task due to a loss of page data. Cause: This error has been encountered because the SESSION_TIMEOUT_RECOVERY_ENABLED profile option value was set to "No" when