Get the single signon userid to use as a default value to populate a column in table

I created a form that has fields which are to be populated with a default value.
I am able to use 'sysdate' function (in formatting and validation options page
of form creation wizard) to populate a date field with current date. I used
the function 'user' and get the oracle userid (This seems like the userid that
the portal uses to log into the oracle database schema). However, I want to
use the single sign on userid that I use to log into the portal application as
the default value. Is there a way to do that?
Thanks,
Karuna

Found the answer on this site. Use portal.wwctx_api.get_user
Karuna

Similar Messages

  • How to get the SQL Signon that Agent Jobs "Run As" or "Executed as User"

    How to get the SQL Signon that Agent Jobs "Run As" or "Executed as User"?
    I have an install SQL scripts that creates a Linked Server. I want to put some security on the Linked Server and only grant the Agent Job Signon (the "Run As" or "Executed as User") access to the linked server. I need to retrieve the
    Agent Job Signon (something like "NT SERVICE\SQLAgent$FIDEV360BI02").
    I could query certain jobs and SUBSTRING the Message column - using some form of the query below, which would return "Executed as user: NT SERVICE\SQLAgent$SSDEVBI02. The step succeeded." But that is pretty imprecise.
    use msdb
    SELECT [JobName] = JOB.name,
    [Step] = HIST.step_id,
    [StepName] = HIST.step_name,
    [Message] = HIST.message,
    [Status] = CASE WHEN HIST.run_status = 0 THEN 'Failed'
    WHEN HIST.run_status = 1 THEN 'Succeeded'
    WHEN HIST.run_status = 2 THEN 'Retry'
    WHEN HIST.run_status = 3 THEN 'Canceled'
    END,
    [RunDate] = HIST.run_date,
    [RunTime] = HIST.run_time,
    [Duration] = HIST.run_duration,
    [Retries] = HIST.retries_attempted
    FROM sysjobs JOB
    INNER JOIN sysjobhistory HIST ON HIST.job_id = JOB.job_id
    -- CHANGE THIS
    -- WHERE JOB.name like '%GroupMaster%' or Job.name like '%etlv%'
    ORDER BY HIST.run_date, HIST.run_time

    by default all sql jobs are executed as sql server agent account, unless otherwise a proxy is setup.
    you can get the proxy information as Olaf mentioned, if the proxy_id is null for the step, it implies that the job step was executed as sql server service account and in such case it will be null
    so, if it is null, it ran as sql server agent account.
    so, one work around is get the sql server agent service account and if the proxy is null, that means it ran as sql server agent account, so, use isnull function. the disadvantage would be if the sql server agent account was switched, you might not get the
    accurate information as the new account will show up though the job really ran as old account, to get this information, you need to  get this from the logmessage column as you mentioned above.
     try this code...
    /*from sql 2008r2 sp1, you get the service accounts using tsql,otherwise you have to query the registry keys*/
    declare @sqlserveragentaccount varchar(2000)
    select @sqlserveragentaccount= service_account
    from sys.dm_server_services
    where servicename like '%sql%server%agent%'
    select message,isnull(name,@sqlserveragentaccount) as AccountName
    from sysjobhistory a inner join sysjobsteps b
    on a.step_id=b.step_id and a.job_id=b.job_id
    left outer join sysproxies c on c.proxy_id=b.proxy_id
    Hope it Helps!!

  • How to get the logged in userId value in adf task flow OIM11g R2

    Hi,
    I have created an adf task flow. Now I want to run some query in that based on the logged in userId.
    Could you please help me in knowing how to get the logged in userID value in adf TaskFlow so that I can run a parameterized query.
    Thanks

    3 different ways to retrieve the username (not sure what you mean by user ID) :
    http://mahmoudoracle.blogspot.be/2012/06/adf-get-current-logged-user-name.html#.USI_c-h8zIo
    Also provide your JDev version.
    Basicly, you should use the groovy expression in a view criteria (it's the fastest and easiest way) and call that view criteria whenever you need it.
    That's if you are using ADF BC of course.

  • I have been getting the wierdest, most ridiculous issues using PP 2014 here is a list:

    i have been getting the wierdest, most ridiculous issues using PP , 2014 here is a list:
    unsyncing single-source a/v when aplying effects.
    exporting the resynced clip to an even more out-of-sync clip
    freeze frame. when applying stabilizer, clip will just stall on a frame whereas before the effect, it didn't
    losing 2-3 hours of work due to auto-save failure. quitting premiere like normal but still having to force quit
    ramdom green frames that just suddenly appear
    constant crashing
    crashing without auto saving
    severe artifacting
    timeline, source, project thumbnails won't play
    toggle to previous/next edit point won't work
    significant, work-hidering issues in 90% of my project that collegues have never heard of
    pefferences will suddenly change. auto-save set to every 5 minutes and 100 versions will reset to default and audio scrubbing has just turned off
    no video, sound only during playback. freeze framing during playback
    pasting an item other than what was copied. copied a mask, pasted and mask of diferent size and shape
    inserting single frames between clips that i didn't add
    mixing unused video during transitions
    mixing unused video into masks.
    the above image is a mask that is being distorted by the image on the left below but it is only occuring in the mask.
    media pending sceen remains long after all content is loaded
    artifacting in the form of green pixel fields after exporting
    these issues are seriously hindering my ability to work. failed solutions i have run thru are:
    closing and reopening PP
    deleting render files and re-rendering
    replacing the distored clip with a  fresh clip
    rebuilding the mask
    restarting my computer
    PRAM and smc resets
    uninstalling and re-installing PP
    what is going on???

    Hi DV,
    Sorry you are having issues. FWIW, I also run a Mac and do not have these issues - however, I am still running OS X 10.8.5 on my personal machine.
    First of all, we need a lot more info: FAQ: What information should I provide when asking a question on this forum?
    deadvessel wrote:
    i have been getting the wierdest, most ridiculous issues using PP , 2014
    You say you are using "PP 2014," however, that is not precise enough. Which version of Premiere Pro CC 2014 are you using? 8.0.1, 8.1, or 8.2? Choose Premiere Pro > About Premiere Pro and look at the bottom of the dialog box. That will give you a precise version number.
    deadvessel wrote:
    Here is a list:
    Indeed, that's quite a list. My first suggestion is that you check out this article and perform the fixes there, if necessary: Premiere Pro CC, CC 2014, or 2014.1 freezing on startup or crashing while working (Mac OS X 10.9, and later) Are all the permissions set correctly?
    The other issue I see a lot is needlessly updating a project file in the middle of a project. The advice here is to avoid updating a project file to a new version of Premiere Pro as you work on it. Update before a new project is created.
    Try a test: update to Premiere Pro CC 2014.2 (8.2) and create a brand new project. Does it work better now?
    Thanks,
    Kevin

  • How to get the URL of an iView using AbstractPortalComponent

    Hi All,
    I need to get the URL of an iView using AbstractPortalComponent using the following code.
    But i am unable to open the URL from the Browser
    This is the following code snippet
    public class AbsClass extends AbstractPortalComponent
        public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
    IPortalComponentURI componentURI = request.createPortalComponentURI();
    componentURI.setContextName("pcd:portal_content/LOG_Viewer/LogViewer");
    String URI=componentURI.toString();
    response.write(URI);
    The output i got from the browser is:
    /irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fLOG_Viewer!2fLogViewer
    Actual Path: pcd:portal_content/LOG_Viewer/LogViewer
    Output Path: /irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fLOG_Viewer!2fLogViewer
    Why some extra numerics are embeded in the output path when compare with the Actual Path.
    Can any one send me the modified code and your suggestions, how to achieve this problem.
    Regards
    Phani

    Hi,
    Now i need to get the URL of this component.
    IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();
    IPortalComponentURI componentURI = request.createPortalComponentURi();
    componentURI.setContextName("com.sap.portal.appintegrator.sap.bwc.Transaction");
    String URI=componentURI.toString();
    response.write(URI);
    I export this component into Portal and i tested with an iView based on this par file, i got the URL in the Preview.
    But when i tried to run this URL by adding the http://<IPADDRESS>:<PORTNO>+URL
    I am facing one AccessDenied Exception for this Object. ( USER/GUEST)
    Is there any security zone, or other Permissions Problem, if so can you plz guide me what are the settings i have to change inorder to resolve this exception
    Regards
    Phani

  • Unable to get the SharePoint 2013 List names using Client object model for the input URL

    Please can you help with this issue.
    We are not able to get the SharePoint 2013 List names using Client object model for the input URL.
    What we need is to use default credentials to authenticate user to get only those list which he has access to.
    clientContext.Credentials = Net.CredentialCache.DefaultCredentials
    But in this case we are getting error saying ‘The remote server returned an error: (401) Unauthorized.’
    Instead of passing Default Credentials, if we pass the User credentials using:
    clientContext.Credentials = New Net.NetworkCredential("Administrator", "password", "contoso")
    It authenticates the user and works fine. Since we are developing a web part, it would not be possible to pass the user credentials. Also, the sample source code works perfectly fine on the SharePoint 2010 environment. We need to get the same functionality
    working for SharePoint 2013.
    We are also facing the same issue while authenticating PSI(Project Server Interface) Web services for Project Server 2013.
    Can you please let us know how we can overcome the above issue? Please let us know if you need any further information from our end on the same.
    Sample code is here: http://www.projectsolution.com/Data/Support/MS/SharePointTestApplication.zip
    Regards, PJ Mistry (Email: [email protected] | Web: http://www.projectsolution.co.uk | Blog: EPMGuy.com)

    Hi Mistry,
    I sure that CSOM will authenticate without passing the
    "clientContext.Credentials = Net.CredentialCache.DefaultCredentials" by default. It will take the current login user credentials by default. For more details about the CSOM operations refer the below link.
    http://msdn.microsoft.com/en-us/library/office/fp179912.aspx
    -- Vadivelu B Life with SharePoint

  • My partner deleted my itunes (10) library. I use a WD external back-up and retrieved my itunes library, but when i try to play a song i get the message 'could not be used because the original file could not be found Would you like to locate it?'

    My partner deleted, by accident my itunes library. I have an iMac 10.6.7, Itunes 10. I use an WD passport as an external back up and retrieved my itunes library but now get the message "could not be used because the original file could not be found. Would you like to locate it?" so itunes is not recognised the exclamation marked songs, how do i get the retrieved files recognised. At times I get fed-up with Apple blocking files being used, although I like the product its restrictions are so silly!

    You not only have to retrieve the library file from the backup drive but the actual music files (usually stored within the "iTunes Media" folder) as well.

  • My Adobe Acrobat 9 Standard stopped working after I performed an msconfig. I get the following message: "You cannot use this product at this time. You must repair the problem by uninstalling and reinstalling this product..." I installed this on Jan. 7, 20

    My Adobe Acrobat 9 Standard stopped working after I performed an msconfig. I get the following message: "You cannot use this product at this time. You must repair the problem by uninstalling and reinstalling this product..." I installed this on Jan. 7, 2010 and I have since misplaced the disk.
    How do I fix the problem?

    Hi Ali,
    You can download Acrobat 9 Std. from: https://files.acrobat.com/a/preview/8d640488-4a92-4f7d-b50b-d8eb7f96bff8
    and reinstall the software.
    Regards,
    Rave

  • How 2 get the path of a file Using jsp

    how 2 get the path of a file Using jsp
    i have tried getPath...but i'm geting the error
    The method getPath(String) is undefined for the type HttpServletRequest
    any idea how 2 get the path of a file

    You need ServletContext#getRealPath().
    API documentation: http://java.sun.com/javaee/5/docs/api/javax/servlet/ServletContext.html#getRealPath(java.lang.String)

  • How to get the form name which is used in standard tcode like me23n in sap

    how to get the form name which is used in standard tcode like me23n in sap
    Moderator message: four out of four threads locked, please read and understand the following before posting further:
    [Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
    [Asking Good Questions in the Forums to get Good Answers|Asking Good Questions in the SCN Discussion Spaces will help you get Good Answers]
    Edited by: Thomas Zloch on Nov 18, 2011 1:32 PM

    how to get the form name which is used in standard tcode like me23n in sap
    Moderator message: four out of four threads locked, please read and understand the following before posting further:
    [Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
    [Asking Good Questions in the Forums to get Good Answers|Asking Good Questions in the SCN Discussion Spaces will help you get Good Answers]
    Edited by: Thomas Zloch on Nov 18, 2011 1:32 PM

  • I keep getting " The song**** could not be used because the original file c

    Ok, I'll try not to get my problem too confusing or complicated. Had a virus and had pc repair store wipe and reload my operating system. They backed everything up and put it in a folder on my desktop. I reinstalled i-tunes. Opened i-tunes. checked my library. Everything is there but duplicated. I manually dumped all duplicates.(That was fun!) I try to play songs. I keep getting " The song** could not be used because the original file could not be found. Would you like to locate it?"
    I locate my i-tunes files in C drive, docs/settings, my docs, i-Tunes, i-Tunes music. I see an icon showing MPEG4 with a musical note and little "lock" symbol in the corner. I double click that icon and i-Tunes opens up and the songs starts playing. If I shut my pc down and restart it, go to i-tunes find that song and click it it always plays now. Okay that's one song fixed. Also if I find the icon in C drive again the little lock symbol is gone. Now down to the meat of my question; am I going to have to do this individually with all 2700 songs? Please tell me a faster way.
    Thank you

    If you know where all songs are located on the computer, I'd suggest just removing everything from iTunes and then adding it back in.
    Edit > Select All
    Edit > Delete
    *Choose the option to Remove from library
    *If prompted to move to recycle bin, choose Keep File
    Then click File > Add Folder to Library and navigate to the folder on your hard drive that has your music in it. You can choose your iTunes Music folder, for example, and this will incorporate any subfolders you have stored in there.
    The lock icon suggests that the file is "protected," so most likely purchased from the iTunes store.
    CG

  • How can i get the list of all tcode used by user of particular module

    Hi,
    How can i get the list of all tcode used by user of particular module (e.g FI , MM ,PP) within year .
    Regards
    Vikram

    Login to your SAP System
    Run TCode SE16
    Type Table Name : TSTCT
    Press F7 Key (Table Contents )
    Go to Settings in menu bar
    Select User Parameters
    Under Keyword select Field Label and press green check mark
    Select your criteria in Data Browser and execute
    You will see all t codes in there
    Regards,
    Yogesh

  • Help me out to get the jar files for FileUpload using MyFaces.

    hi,
    Can anyone help to get the jar files for FileUpload using MyFaces.
    I want myfaces-extensions.jar and commons-fileupload-1.0.jar.
    Thank you.

    you can't control the speed of a for-loop.
    you can remove your code from a for-loop and use a function to execute the code in your for-loop and you control how frequently you call the function.

  • I can not get any updates and therefor not use Java as it only run updates for Mac 10.7. and later? How do i get the updates to install and use Java?

    I can not get ny updates and therefore not use Java, as it only run updates for MAC 10.7. and later. How do i get the updates to install and use JAVA ?

    In Snow Leopard you update Java from Software Update (in the Apple menu). You can check your version by opening Terminal and typing
    java -version
    (don't get creative and type anything else)
    The latest version is 1.6.0_65.

  • Creative Cloud Student and Teacher Edition .I use the Macbook.I got the mail that said my order was checked,but I don't get the number.So I still use trial.Hoe can I change my character into member?

    Creative Cloud Student and Teacher Edition .I use the Macbook.I got the mail that said my order was checked,but I don't get the number.So I still use trial.Hoe can I change my character into member?

    This is an open forum, not Adobe support... you need Adobe support to help
    Adobe contact information - http://helpx.adobe.com/contact.html
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"

Maybe you are looking for

  • SuperDrive will not burn dvds

    I can burn CDs,play CDs and watch DVDs. I can not burn DVDs. I have iLife but I cannot run iDVD because it is not compatible with of my version of OS. Why I don't know. Why should I have to buy every upgrade that come out? I can live with that, sort

  • Large number of small order

    Hi All, How the   process  "splitting a large purchase order  into smaller order based on certain criteria and processed together such that one order block ,blocks all the order" handled efficiently in SAP Would appreciate your inputs on the above. T

  • Prevent parked documents from showing in Liquidity Forecast

    We have an invoice scanning system in place here which usually leads to many parked invoices being created. These invoices then show up in the liquidity forecast when we would like to exclude them. Many of these parked documents need to be reviewed t

  • Some parameters are missing values

    I am trying to invoke a crystal report using JRC API. I am using Business Objects XI. When I try to invoke the report after setting all parameters I am getting an error message "Some parameters are missing values ". Here is how my JSP code looks like

  • GRC AC User Provisioning

    Hello all, I know we can create users for ECC, CRM, PI, Portal and others bases on NetWeaver through GRC AC standar solutions. But what about BO BI, DS, BPC? I read some posts about the subject but they were not clear as I need. Can I create users in