ADF 11g + getting the user details in ADF BC layer

Hello,
I am using Jdeveloper build JDEVADF_11.1.1.2.0_GENERIC_091029.2229.553
How to get the user name and roles in ADF BC layer? . I need to get the username in entity layer,view layer and am layer.
Is there way to write common method to get the username from session data??
Any advice??
Thanks
RB

Hi,
You can get User name using EL ---adf.context.securityContext.userName
and also using---getUserPrincipalName()
Thanks,
Vijay

Similar Messages

  • Script to get the user details by running a view from powershell

    Hi,
        I have a use-case of getting the list of users, who got modified in last one week or so. There was no direct way of getting the results as office-365 doesn't have the option. As i posted in a forum they suggested to use view based for retrieving
    the user details. I was able to get some user details through UI. When i asked for the option of getting it from powershell they suggested to post in this forum. Link on the question posted in forum is
    community.office365.com/en-us/forums/148/p/212305/646170.aspx#646170 your help is appreciated. Thanks in Advance

    Hi Sam,
    My list of servers are exported from CMDB data base and filter criteria i have used is role,status and first few characters of the server name.
    $CIlist = Import-Csv C:\Scripts\DiskSpace\Servers_CI.csv
    $diskspace = @()
    $CIlist | where {($_.Name -like '*XXXXXXXX*') -and ($_.Role -like '*XXXXXXXXXX*') -and ($_.Status -like '*XXXXXXXXXXXXXX*') } |
    select Name | FT
    # This part gives the list of servers.
    # below script gives the hard disk details of servers from a list
    $comp= Get-Content "C:\Scripts\DiskSpace\systems.txt"
    $diskvalue = @()
    foreach($pc in $comp)
    if (test-connection -CN  $pc -Count 1 -erroraction silentlycontinue)
        $diskvalue += Get-WmiObject -Class Win32_logicaldisk -ComputerName $pc -Filter DriveType=3 | 
        Select SystemName , DeviceID , @{Name=”size(GB)”;Expression={“{0:N1}” -f($_.size/1gb)}}, @{Name=”freespace(GB)”;Expression={“{0:N1}” -f($_.freespace/1gb)}}
        $diskvalue | Export-Csv C:\Scripts\DiskSpace\DiskReport.csv -NoTypeInformation
    else
    "$pc `t offline" | Out-file C:\Scripts\DiskSpace\offlinesystems.csv -encoding ASCII -append
    Is there any option to pass the result of first part to second part without exporting to a csv ot txt. or club this both together ??
    ToJo

  • How to get the user details

    Hi All,
       I want to fetch the user ID and email address, by using user details like first name, last name and user name.
      Could you please suggest me which tables I can refer to get these data. And I tried to fetch it from the view V_USR_NAME,
      But I could not able to get the data from the view by using select query. Please suggest me. Thank you

    Hi Sriram
       Thank you for your immediate response.. I have a gone through that thread and I noticed that in that case by using the email address we are getting the userID. But in my case I need to get both userID and email address by using first name and last name. I also tried to get the person number from ADRP table by using these fields (So that I can get the email address from ADR6 table by using the person number).. but the first name and last name are not the key fields..So got stucked there. Please suggest me how to proceed.
    Thank you

  • How to get the User Details inoformation in portal?

    I had defined the user informations in "Portal User Details". But i don't know how to get it and what the user table is?
    for example: How to get the email address of user i have defined in portals?
    Tank you very much!
    Ghia Liu
    Genesyslogic.com.tw

    You would use the portal API's for this, there is one named wwsec_api.person_info that returns a record with the specified user's information, such as first name, lsat name, email, telephone, etc - a pretty long list. With release 2 of portal the data is no longer stored in the wwsec_person$ table as it was in release 1 so use the API (which actually is how I would normally do it in release 1 as well).
    To get more documentation on portal API's go to: http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/plsql/doc/astart.htm
    Hope that this helps you - enjoy the day!
    Art

  • Tabular Form - How to store in a column the User details (APP_USER)

    Hi all,
    I have let's say the following table:
    USER_COMMENTS(
    ID number primary key,
    COMMENT_TEXT varchar2(50),
    POSTED_BY_USER varchar2(50),
    DATE_POSTED date,
    UPDATED_BY_USER varchar2(50),
    DATE_UPDATED date)
    How do I, using a Tabular Form, get the USER details in the columns POSTED_BY_USER and UPDATED_BY_USER and the SYSDATE in DATE_UPDATED...
    I've tried the following:
    Created tabular form, all fields included. In Report Attributes > edit UPDATED_BY_USER > Display as Display as Text (saves state); Default Type: Item (application or page item); Default: APP_USER.
    It's not working.
    Thanks!
    Andrei

    It has to be a text field column type with source like the other updatable columns. You should hide that column and create a second of display as text if you want to show the content. Once this is done then you can use the default value and just type the item name there as you did:
    P1_ITEM
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    ------------------------------------------------------------------------------

  • How to get the user logged at worklist (Adf Form - Human Task)

    Hi,
    I have an Adf Form Based on Human Task and and need to get the user logged at Worklist Application.
    Anyone know to make this ?
    Thanks.
    Victor Jabur

    Hi, thanks for your reply, but i discover a better way to make this:
    public String getLoggedUserWorklist(){
    String user = "";
    try{
    Map parameters=AdfFacesContext.getCurrentInstance().getPageFlowScope();
    IWorkflowServiceClient wfSvcClient = WorkflowService.getWorkflowServiceClient();
    ITaskQueryService queryService = wfSvcClient.getTaskQueryService();
    String contextId = (String)parameters.get("bpmWorklistContext");
    IWorkflowContext context = queryService.getWorkflowContext(contextId);
    user = context.getUser();
    }catch(Exception e){
    user = "";
    return user;
    }

  • How to get the User ID's details in SRM Workflow EBP system

    Hi Team
    How to get the User ID's details in SRM Workflow EBP system. Example like i have User ID "BTEMPEST" but i want his full name . so please suggst me how to get the full name of user id where it is maintained.
    Thanks.
    Puneet.

    Thank you very much muthu.
    For your information FM "RSPLPPM_GET_USERDETAILS" is working fine.
    Thanks for quick response.
    Thanks
    Puneet.

  • How can I get the attributes details like user name, mail , from sAMAccount csv or notepad file through powershell or any other command in AD?

    How can I get the attributes details like user name, mail , from sAMAccount csv or notepad file through powershell or any other command in AD?

    Ok what about If i need to get all important attributes by comparing Email addresses from excel file and get all required answers
    currently I am trying to verify how many users Lines are missing , Emp numbers , Phones  from AD with HR list available to me.
    I am trying to Scan all the AD matching HR Excel sheet and want to search quickly how many accounts are active , Line Managers names , Phone numbers , locations , title , AD ID .
    these are fields I am interested to get in output file after scanning Excel file and geting reply from AD in another Excel or CSV file
    Name’tAccountName’tDescri ption’tEma I IAddress’tLastLogonoate’tManager’tTitle’tDepartmenttComp
    any’twhenCreatedtAcctEnabled’tGroups
    Name,SamAccountName,Description,EmailAddress,LastLogonDate,Manager,Title,Department,Company,whenCreated,Enabled,MemberOf | Sort-Object -Property Name
    Can you modify this script to help me out :)
    Hi,
    Depending on what attributes you want.
    Import-Module ActiveDirectory
    #From a txt file
    $USERS = Get-Content C:\Temp\USER-LIST.txt
    $USERS|Foreach{Get-ADUser $_ -Properties * |Select SAMAccountName, mail, XXXXX}|Export-CSV -Path C:\Temp\USERS-ATTRIBUTES.csv
    #or from a csv file
    $USERS = Import-CSV C:\Temp\USER-LIST.csv
    $USERS|Foreach{Get-ADUser $_.SAMAccountName -Properties * |Select SAMAccountName, mail, XXXXX}|Export-CSV -Path C:\Temp\USERS-ATTRIBUTES.csv
    Regards,
    Dear
    Gautam Ji<abbr class="affil"></abbr>
    Thanks for replying I tried both but it did not work for me instead this command which i extended generated nice results
    Get-ADUser -Filter * -Property * | Select-Object Name,Created,createTimeStamp,DistinguishedName,DisplayName,
    EmployeeID,EmployeeNumber,Enabled,HomeDirectory,LastBadPasswordAttempt,LastLogonDate,LogonWorkstations,City,Manager,MemberOf,MobilePhone,PasswordLastSet,BadLogonCount,pwdLastSet,SamAccountName,UserPrincipalName,whenCreated,whenChanged
    | Export-CSV Allusers.csv -NoTypeInformation -Encoding UTF8
    only one problem is that Manager column is generating this outcome rather showing exact name of the line Manager .
    CN=Mr XYZ ,OU=Users,OU=IT,OU=Departments,OU=Company ,DC=organization,DC=com,DC=tk

  • Transaction code to get the User Log details..

    Hi Friends,
    I need a transaction code or the process to get the User information for the past 40 days..
    I need a details such as, which user has logged in at what time and used what transactions in the past 40 days..
    Reagards,
    Navaneeth.

    Hi dear,
    USER LOGS CHECKS:
    1. ANALYSE APPLICATION LOGS
       TR: SLG1     (Do not select Read from Archive)
    2. READ SYSTEM LOGS
       SM21    (Selected problem and warning only)
    3. User Information Systems
       SUIM    (Select Last one Change Documents for Users)
               (Select then all Selection Criteria for changed Header Data)
    4. IF SUIM doesn't show then trun on Security Audit logs:
       SM19    (Selected All Audit Classes) & Create display profile name
    5. CHECK THE AUDIT LOGS:
       SM20    (Check the audit logs)
    6. SELECTION STATISTICAL RECORDS
       STAD    (selected all posible check and hit Enter)
    Regards
    Angeline

  • Getting the terminal Details of the user

    Hi there all,
    I have one requirement. I have a application (forms 6i, oracle 9i) which is used by 25 odd users concurrently on Windows OS.
    I need to know the terminal details of each user.
    If we have different oracle users, we can get the terminal ID's. Given that back end user id is same and only front end login ID's differ, how can one get the terminal details of every user.Looking forward for suggestions.
    Thanks in Advance.
    Regards,
    Ajeet

    If you are web deployed you can use the webutil package to do this.
    Regards
    Grant Ronald
    Forms Product Management

  • How to get the User entered value in the Submit request form for a parameter of a concurrent program in Oracle applications.

    Hi All,
    I have a requirement where i need to get the user entered value in the Parameter of a concurrent program while submitting it. i tried to query the FND_CONCURRENT_REQUESTS table but in that it stores the ID values from the value set of the Parameter.
    After submitting the Concurrent request when we click on the view Details button it opens a form where it displays the arguments in the parameter field .  i want to get that string.
    Thanks a lot in advance for your time and help.
    - Vijay

    Hi All,
    I have a requirement where i need to get the user entered value in the Parameter of a concurrent program while submitting it. i tried to query the FND_CONCURRENT_REQUESTS table but in that it stores the ID values from the value set of the Parameter.
    After submitting the Concurrent request when we click on the view Details button it opens a form where it displays the arguments in the parameter field .  i want to get that string.
    Thanks a lot in advance for your time and help.
    - Vijay

  • Query to get the User who updated BP Catalog No. for an Item.

    Hi experts,
    I am trying to get the user id who updated BP Catalog No. for an Item. BPCatalog Number details are available in OSCN table. There is no BPCatalog No. field available in ItemMaster OITM, or in ItemHistory AITM. Also, I searched for history table of OSCN. I could not find it.
    Any help is appreciated.
    Thanks in advance,
    Parvatha Solai.N

    Hi,
    Thanks for your quick response and reply.
    Regards,
    Parvatha Solai

  • What can be the reason behind getting the Dialer Detail

    what can be the reason behind getting the Dialer Detail
    CallResult = 2 "Error condition while dialing"

    Sorry buddies, for bothering you, without providing enough details.
    We are running Java based ERP for our client, with Oracle Application Server 10.1.3.1.
    OS is Sun Solaris 10
    Database is Oracle 11g
    We found the following errors in /product/10.1.3.1/OracleAS_1/Apache/Apache/logs/error_log file.
    [Mon Jun  8 11:01:41 2009] [error] [client <ipaddr>] [ecid: 1244439100:<server ip>:17034:0:70,0] mod_oc4j: request to OC4J iisapp:8890 failed: AJP error: bad header
    [Mon Jun  8 11:11:36 2009] [error] [client <ipaddr>] [ecid: 1244439685:<server ip>:16312:0:2255,0] request failed: error reading the headers
    [Mon Jun  8 13:25:52 2009] [warn] [client <ipaddr>] oc4j_socket_recvfull timed out
    We have done the following changes recently
    => KeepAlive TImout changed to 5 secs from default 15
    => Changed the MaxPermSize to 512M in opmn.xml
    => Our Max Clients setting changed to 350 from default 150.
    Can someone help us by providing the possible reasons for the occurence of said errors.
    Regards,

  • Return the user detail after validate the SSO token

    Hi all ,
    Iam new to Oracle CRM on demand. I want to know is there a way to get user details when validating the SSO token. After SSO validation success then need to return the user detail (User first name, email, last name, etc ).
    Please help me

    Hi Vikas,
    I have done the same setup as your sample application. I am using
    <br>
    Branch URL : <br>
    f?p=&APP_ID.:&APP_PAGE_ID.:&APP_SESSION.::::::#&P1_ANCHOR.
    <br>
    Computation for P1_ANCHOR:<br>
    case :REQUEST
    WHEN 'P1_A_SCN' THEN 'P1_A_SCN'
    ELSE NULL
    end
    <br>
    Anchor Code in region header for item P1_A_SCN:<br>
    < a name="P1_A_SCN">< /a >
    <br>
    When I use the select list it wont come back to the region where the select list P1_A_SCN is located. I checked for the value in P1_ANCHOR in the session state and it correctly shows as 'P1_A_SCN'. But the page URL after the submit does <b>not</b> show the anchor like<br>
    ......f?p=206:1:14418154115565883485::::::#P1_A_SCN it shows <br>
    ......f?p=206:1:14418154115565883485::::::
    <br>
    When I but the branch URL as <br>
    f?p=&APP_ID.:&APP_PAGE_ID.:&APP_SESSION.::::::&P1_ANCHOR. without the '#' it shows the page URL as<br>
    ......f?p=206:1:14418154115565883485::::P1_A_SCN
    <br>
    Do you what is causing the anchor to not show up in the page URL and thereby the intra page branch to not work.
    Thanks,
    Swaroop

  • How to find out the User Details for the particular transaction

    Hi,
    Actually AJAB -Asset Year closing was done by One User.How and Where to find out the User details who executed the Transaction.Kindly tell me the T-code for this.
    Thanks
    Sap Guru

    Hi:
    Please contact you basis administrator.Give him the T.code and date when Year closing was done. He may resolve your problem.
    Please let me know if you need more information,
    Assign points if useful.
    Regards
    MSReddy

Maybe you are looking for

  • Special Characters in File Names

    Hello! I'm experiencing some difficulties with the file names RoboHelp is producing. I have imported my Frame files by reference and am generating Web Help. RoboHelp apparently does not like hyphens/em dashes in file names - when I generate help, I g

  • A chance for YOU to play for the T-SQL team, in the TechNet Guru World Cup!

    The World Cup is here again! Not balls... brains! And YOU have been selected to play on our team! Yes forum reader, step up and take a shot! Slam some techie tips in the back of our nets! No dribbling please, just lots of problem tackling. So come on

  • Parallel approval  nest sequent approval for SC

    Dear All      I am using SRM7.02. I can realize parallel approval for SC  as following.      only after A1 and B1 approved. the process will end or enter next level.    But , the customer gave me a new challege,  as the following. The work item is se

  • LR 5.2 Export .mov file not performed

    I am having issues with exporting photos along with a mov file. I am assuming that you can export photos along with video can you not? I have tried and everytime when I do an export I get these messages that say "some export operations were not perfo

  • [ANNOUNCE] MyFaces passed the JSF TCK 1.1

    The MyFaces team is very proud to announce the fact, that the current codebase has just passed all JSF TCK 1.1 tests! This is a great milestone (actually the greatest since MyFaces has started in 2003) and we are all looking forward to releasing the