Query to find users based on Resource Status

Hi All,
I'm working on OIM 9x version.I need to find out set of users for a resource which is in "Ready" status under their resource profile
let say Resource A is there and for some users the staus of this Resource under their resource profile is in "Ready".I would like to fetch those users.
Kinly help me by providing SQL query for this.
Thanks
Madhu

Try this query:
select usr.usr_login, obj.obj_name, ost.ost_status from usr, obj, obi, oiu, ost where usr.usr_key = oiu.usr_key and obi.obi_key = oiu.obi_key and obi.obj_key = obj.obj_key and ost.ost_key = oiu.ost_key and obj.obj_name='<resource object name>'
you can add : and ost.ost_status = <status value > to search status as well.
regards,
GP

Similar Messages

  • ORACLE E-BUSINESS SUITE 11i Query to find users who never logged in

    Dear, All -
    ORACLE E-BUSINESS SUITE 11i
    Is there a query to find out a list of users who were created but never logged into the system. I believe these users do no appear in FND_USER table since they never logged in.
    Thanks in advance!

    FAIRE wrote:
    Dear, All -
    ORACLE E-BUSINESS SUITE 11i
    Is there a query to find out a list of users who were created but never logged into the system. I believe these users do no appear in FND_USER table since they never logged in.
    Thanks in advance!All application users details are stored in FND_USER table (whether they logged in or not).
    To find the list of those users, please run this query:
    SQL> select *
    from FND_USER
    where LAST_LOGON_DATE is NULL
    and END_DATE is NULL;Thanks,
    Hussein

  • Query in Find User Form

    Find User Form throws a query and return "result" attribute with user's list. Where's this Query?

    Yes, I'd really love to know this too.
    Anybody have an idea where this Query can be found?
    Thanks

  • Any Database Query to Find User Making Last Edit to Spec

    Is there any table in the PLM4P database that records the user PKID for the at least the latest edit on a specification?
    We know this information is not presented in the UI. If we can find out if this is recorded anywhere in the database, we can write a query when this info needs to be known.
    Our business case is:
    The spec originator (author) has left the company, so we have allowed DRAFT edit rights to the entire group and not just the author.
    Now we want to determine which group member made a recent change.
    Thank you.

    The commonLifecycleEventLog table should give you the history of each spec in terms of edit/saves.
    Details about the table are the following, taken from the Extensibiltiy Pack, Extensiblity Guide, in the Event Model chapter
    As specific events occur in GSM and SCRM, their details are captured and recorded in
    a single database table. Clients can watch for events added to this table to trigger some
    custom actions.
    Each event captured may include the following information:
    - Event Type—The type of event that occurred (1: Create, 2: Save, 3: Workflow, 4: Copy)
    - Event Source—What caused the event (New issue of a specification, workflow
    transition, etc.)
    - Actor—User who performed the event
    - Time—Date and time stamp of when the event happened
    - Affected Object—Specification or object that was acted upon (Specification that was
    saved, specification that was copied, etc.)
    - Related Object—Related object when appropriate (Workflow step, smart issue
    request, specification ID, etc.)
    - Reason—Reason the action occurred when appropriate (Workflow comments, global
    succession reason for change, smart issue request that caused the change, etc.)

  • SQL Query - To Find Users with end dated responsibilities

    Oracle Apps ver: 11.5.10.2
    Oracle DB - 9i
    How can i list users and the access assigned to them for a specific division irrespective of the responsibility being end dated at responsibility level

    Hi Sakshi,
    Try out this query if it can help you !
    SELECT a.user_name, a.description, c.responsibility_name, c.creation_date as ASSIGNED_DATE>FROM apps.fnd_user a,
    >apps.fnd_user_resp_groups b,
    >apps.fnd_responsibility_vl c
    >WHERE a.user_id = b.user_id
    >AND b.responsibility_id = c.responsibility_id
    >AND a.creation_date < = '01-JUN-07'
    ORDER BY a.user_name;Thanks,
    Anchorage :)

  • Query to find user who doesn't own object

    Hai all,
    I want a query to get the list of the user who doesn' t have a particular object in the DB :
    OBject name is apps_ddl..
    All users in the DB should have this object.. want to know who are all the users in the DB who doesnt have apps_ddl
    Please suggest
    Kai

    Have access to it, or actually have it in their own schema?
    select username from dba_users
    minus
    select owner from dba_objects where object_name = 'APPS_DDL';

  • Finding users based on "sharedId"

    I have an app that has Chatting, Webcam and the issue is let's say that user enters and on CollectionNodeEvent.SYNCHRONIZATION_CHANGE handler I read UserDescriptor in connectSession.userManager.userCollection to read all users but, I just need users logged in as a certain "Share ID"..
    So, my question is basically, let's say I have two ISessionSubscriber with different "share Id" values and user are connected.  How do I identity who is logged in for what? meaning which shared id?
    Thanks,
    BaBo,

    BaBo,
    as we tried to explain before you cannot "login" into a specific pod. You login  into a ConnectSession and then subscribe to particular collection (possibly associated to a pod)
    Currently there is no way to know who subscribed to a collection. But if you have your own collection you can decided who subscribes to what.
    Since you keep mentioning that users can be subscribed to a webcam or the chat you must have a way to decide who subscribes to what (depending on their user id ? would they select at login time what they want to do ?)
    So, here is a couple of suggestions. Note that both require you use external authentication :
    - when a user logs in (into a ConnectSession), depending on what you decide they should subscribe to you give them a different userId. For example if a user should only use the chat pod make their user ids like chat_<userid>. If they should only have webcam make their user ids cam_<userid>.
    - in the client application, after they are logged in, you check their user id and if they are chat_* you subscribe them to your chat pod, while if they are cam_* you subscribe them to the webcam pod
    Depending on their userId, and assuming that they succesfully subscribed to the correct pod you can figure out who is where.
    A slightly different approach is that instead of looking at their userIDs you look at their role. And when you generate their external authentication tokens you give them a different role depending on what they should be subscribing to (i.e. 60 for chat, 70 for webcam, 80 for both)
    Does this make sense ? Is it close to what you are trying to accomplish ?

  • SQL Query to Find out User has what all resources provisioned !

    Hi Guys ,
    Does any one have a SQL query to find out what resources are provisioned to a particular user ?
    Thanks
    Suren

    Hi,
    Hope this will help you.
    SELECT distinct usr_login as "IdM User ID",
    usr_employeeID as "Employee ID",
    usr.USR_FIRST_NAME as "First Name",
    usr.USR_LAST_NAME as "Last Name",
    usr_status
    as "User Status",
    USR_EMP_TYPE as "Employee Type",
    obj.obj_name as "Application Resource",
    ost_status as "Application Resource Status",
    FROM ost,oiu,obj,usr,obi
    WHERE oiu.ost_key = ost.ost_key AND obj.obj_key = obi.obj_key AND oiu.usr_key = usr.usr_key
    AND ost_status in ('Provisioned','Revoked','Disabled', 'Provisioning')
    AND oiu.obi_key=obi.obi_key
    AND usr_EmployeeID like '11111'
    This query will provide all the resources to which the user is linked with and the resource status is in 'Provisioned','Revoked','Disabled', 'Provisioning' status for a particular employeed ID, I am not completely sure whether I have given the Employee ID column from USR table as correct or not. Verify once and query the DB

  • Sql Query To Find Out list of users not having a particular resource provisioned

    Hi,
    I know the query for all the resources tagged to user with their account status.
    Can anybody help me with a query to fetch just the user details for the following scenario:
    1)Active users having  having no instance of a particular resource.
    Condition: Exclude Active users having one provisioned instance of the resource and fetch user details having no provisioned account for that resource .
    it is just for report purposes.So format is not of concern.Just need the list of users not having a single provisioned account for a particular resource.

    Hi,
    Please try the below query :
    select distinct usr.usr_login from USR,OIU where USR.USR_KEY not in (select OIU.USR_KEY from OIU)
    and OIU.APP_INSTANCE_KEY= (select APP_INSTANCE_KEY from APP_INSTANCE where APP_INSTANCE_NAME='ADResource');
    Change the app instance name acording to you need.
    -Saurabh

  • Querying users and their resource names from SSO tables

    Hi,
    Any ideas how to query the SSO tables so that i can extract all users and which "Resource Access Information" (for Forms based applications) is assigned to each user.?
    A bit like the solution on the link below but also with a join to resource names (for Forms) that each user has.
    Querying user enabled status from SSO tables
    Thanks

    Thank you for that! I have extended this query to contain the ods.ct_uid table as follows as some users were being omitted. Also I have included a decode statement that changes the 'enabled' or 'disabled' to a 0 or 1.
    SELECT
    UPPER(cus.attrvalue) username,
    DECODE(NVL(ena.attrvalue, 'enabled'), 'enabled', 1, 'disabled', 0) enabled
    FROM
    ods.ct_orclisenabled ena,
    ods.ct_uid cus,
    ods.ct_cn ctu
    WHERE cus.entryid = ctu.entryid
    AND ena.entryid (+) = ctu.entryid

  • User Resource Status Change through Database

    hi,
    i need to know which table stores the status of the recource instance assigned to user.
    i tried querying upa_resource table based on oiu_key but oiu_key corresponding to usr_key in oiu table do not match.
    please help wth your inputs.
    thanks

    2. Updating Resource Status to Revoked for a given resource:
    ==========================================================
    update oiu set ost_key = (select ost_key from ost where obj_key in ( select obj_key from obj where obj_name like 'RESOURCENAME' ) and ost_status like 'Revoked') where ORC_KEY = 'Process Instance Key'
    update orc set orc_status='X' where orc_key = 'Process Instance Key'
    Source: http://rajnishbhatia19.blogspot.com/2008/10/oim-backdoor-queries.html
    Although you can do it directly, I agree 100% with Kevin.
    Renato.
    Edited by: Renato.Guimaraes on 27/08/2009 06:00

  • Query to find out the time used by an user for an application

    Hello All,
    I want to know the query to find out the whole time used by the user for an application. Please view the below data
    Employee:
    SNO EMP_ID EMP_NAME EMP_DATE LOGIN_TIME LOGOUT_TIME
    1 10 Visu 21-Nov-2010 06:30:00 07:30:00
    2 10 Visu 21-Nov-2010 06:40:00 07:20:00
    3 10 Visu 21-Nov-2010 06:50:00 07:50:00
    4 10 Visu 21-Nov-2010 07:30:00 08:30:00
    5 10 Visu 21-Nov-2010 09:30:00 10:30:00
    By checking the above data we can say that the total time Visu used the application is
    8.30 - 6.30 (From 1,2,3,4 records) = 2hrs
    10.30 - 9.30 (Based on 5th rec) = 1hr
    So the total time Visu used the application would be 3 hrs = 180 mins.
    Could you please help me in getting the result from that data using a query?

    odie_63 wrote:
    I think it may be solved with analytics too.
    with t1 as (
                select 1 sno,10 emp_id,'Visu' emp_name,'21-Nov-2010' emp_date,'06:30:00' login_time,'07:30:00' logout_time from dual union all
                select 2,10,'Visu','21-Nov-2010','06:40:00','07:20:00' from dual union all
                select 3,10,'Visu','21-Nov-2010','06:50:00','07:50:00' from dual union all
                select 4,10,'Visu','21-Nov-2010','07:30:00','08:30:00' from dual union all
                select 5,10,'Visu','21-Nov-2010','09:30:00','10:30:00' from dual
         t2 as (
                select  emp_id,
                        emp_name,
                        emp_date,
                        to_date(emp_date || login_time,'DD-MON-YYYYHH24:MI:SS') login_time,
                        to_date(emp_date || logout_time,'DD-MON-YYYYHH24:MI:SS') logout_time
                  from  t1
         t3 as (
                select  t2.*,
                        case
                          when login_time < max(logout_time) over(
                                                                  partition by emp_id,emp_date
                                                                  order by login_time
                                                                  rows between unbounded preceding
                                                                           and 1 preceding
                            then 0
                          else 1
                        end start_of_group
                  from  t2
         t4 as (
                select  t3.*,
                        sum(start_of_group) over(partition by emp_id,emp_date order by login_time) grp
                  from  t3
         t5 as (
                select  emp_id,
                        emp_date,
                        min(login_time) login_time,
                        max(logout_time) logout_time
                  from  t4
                  group by emp_id,
                           emp_date,
                           grp
    select  emp_id,
            numtodsinterval(sum(logout_time - login_time),'day') time_spent
      from  t5
      group by emp_id
      order by emp_id
        EMP_ID TIME_SPENT
            10 +000000000 03:00:00.000000000
    SQL> SY.

  • Query to find the list of users having access to a particular scenario

    Hi,
    I am learning Hyperion Planning 9.2 x version. I wanted to know the query to find the list of users having access to Plan Iteration - 1 scenarion.
    As I am new to Hyperion Essbase and Hyperion Planning, I am assuming these ideas work out to get the desired result.
    1) As Hyperion Planning uses Relational DB to store the User Security information, we can query the list of users who is having access to Plan Iteration - 1 Scenario.
    I am not sure if this solution works. Please correct me If I am wrong.
    2) We can also query from the essbase editor to find out who all having access to this scenario.
    If the above is correct, can you please provide me the query.
    I am really need of this and I will be happy if any one provide the solution.
    Thanks & Regards,
    Upendra. Bestha

    Hi,
    If you are looking for some SQL to retrieve the access rights by member then you can use something like (SQL Server code though can easily be modified for Oracle)
    SELECT usr.object_name as Username,mem.object_name as Member,
    'Access Rights' = CASE acc.access_mode
    WHEN -1 THEN 'None'
    WHEN 1 THEN 'Read'
    WHEN 2 THEN 'Write'
    WHEN 3 THEN 'Write'
    ELSE 'Unknown' END,
    'Relation' = CASE acc.flags
    WHEN 0 THEN 'Member'
    WHEN 5 THEN 'Children'
    WHEN 6 THEN 'Children (inclusive)'
    WHEN 8 THEN 'Descendants'
    WHEN 9 THEN 'Descendants (inclusive)'
    ELSE 'Unknown' END
    FROM
    hsp_access_control acc, hsp_object mem, hsp_object usr
    WHERE acc.object_id = mem.object_id
    AND acc.user_id = usr.object_id
    AND mem.object_name = 'Plan Iteration - 1'
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Query to find out the list of user who have delete access

    Hi,
    I need a query to find out the list of users who have delete access on perticular folder/universe/ reports  in infoview.
    Please advice.
    Regards,
    Neo.

    orton607 wrote:
    thanks for replying guys. But the thing is i am using dynamic sql execute immediate in my package, so i want those tables also and the schema name.
    thanks,
    ortonThis is not possible. The best you could do is to have a good guess.
    Or how would you parse some dynamic statement as this:
       v_suffix := 'loyees';
       v_sql := 'Select count(*) from (select ''nonsense'' col1 from emp'||v_suffix||') where col1 = ''Y'''';
       execute_immediate(v_sql);
    ...What is the table name? How do you want to parse that?
    Better rewrite all dynamic SQL statements into non dynamic ones. Or do the source control logic for those dynamic parts in an extra module. For example implement your own dependency table and force every developer to add there all dynamic parts.

  • Assign a role automatically based on resources assigned to the user?OIM 11g

    Hi,!
    i have a request and this is:
    in my scenario i have roles associated with access policies that assign resources .
    i have resources assigned by a target reconciliation ... what i need is assign a role based on resources that the user has..
    if the user has 4 resources added by a target reconciliation and these 4 resources make a role then the role has to be assigned automatically...
    any idea?? this is possible?? thnx..

    any idea?? ... this is possible??

Maybe you are looking for

  • Aattach as email option in Acrobat X Standard doesn't send to the default email address in Outlook

    I am running Microsoft Office 2010 Proffesional + and in Outlook I have two separate (not aliases) email accounts that are attached to the same .pst file. When I open a pdf file with Adobe Acrobat, and try to "Attach to Email", Adobe opens up Outlook

  • Single sign on iPad

    Is it possible to implement sso for the adobe connect iPadapp. I want iPad users to login on my site and enter the meeting from here without filling their username and password again. The app should automatically launch and I want that the user immed

  • Where I can to download patchset  6810189?

    I need to upgrade oracle 10.2.0.1 to 10.2..0.4. I am using linux 32 bit system. Where I can to download patchset? Please provide the links.

  • Courtesy Callback for CVP 9 w/o Call Studio

    Just a question, is Call Studio a requirement to be able to utilize courtesy callback for CVP? I have a customer using only micro-apps and didn't purchase Call Studio but they might be potentially looking at some sort of callback solutions. Hence, th

  • Exporting HD via iMovie 08

    I just purchased a Canon HG20 HD video camera. I can import the "full HD" into iMovie but when I go to export the maximum resolution if gives me is 960x540. I've done extensive research on the web and apparently you CAN export to higher resolutions i