Getting the logged user type
hi all,
how do we get usertype to check whether the logged user is a customer type or administrator type in istore.
Please help me out.
Thanks
Mark
You can use below built in methods to identify the user type.
1) RequestCtx.userIsStoreAdmin()
2) RequestCtx.userIsInternalUser()
3) RequestCtx.userIsAnonymous()
4) RequestCtx.userIsSalesRep()
5) RequestCtx.userIsBusinessCustomer()
6) RequestCtx.userIsUnapprovedBusinessCustomer()
7) RequestCtx.userIsPartner()
8) RequestCtx.userIsIndividualCustomer()
Hope this will be helpful.
Similar Messages
-
Bassically i just got my new iphone 5, everything was going fine up untill the Apple ID login box started appearing and then dissapearing before i get the chance to type the password. It pops up every 10 to 20 seconds, and dissapears just as quick as it popped up. I have turned the device on and off, and I have rebooted it. I checked for 'waiting downloads' or 'paused downloads' and there are none. i can still use everything on the phone, but this log in box popping up so often is going to get extremely annoying, im already contemplating sending it back!!!
PROBLEM SOLVED! HAHA
I did a full restore via iTunes. -
How to get the current user logon to portal?
Hi Gurus,
How to get the current user who logged into portal.
I have a webdynpro requirement where in which I have to get the current user id who loggedinto portal which will be the input parameter of the BAPI(adaptive RFC model) which will return me employee number of the particular user.
Can anyone send me the code to retrive the user id through webdynpro application..........
Pts will be rewarded for useful inputs......
Thanks in Advance,
DharaniHi Dharani,
Using UMEfactory u can do that...
1. create one input field,
2. create one attribute called Uid
3. assign Uid attribute to the input field
4. type the following code in Doinit() method
String uid = wdContext.currentContextElement().getUid();
try {
IUser user = UMFactory.getUserFactory().
getUserByLogonID(uid);
String userName = user.getDisplayName();
} catch (UMException ex) {
e.toString();
5. after that go to Portal create one iview assign to particular user. then u get into the user details...
thats it
Regards,
P.Manivannan -
Getting the NT user name (Windows user name)
Hello,
I am trying to get the windows user name in ABAP program but
I can not find any useful function.
Thanks in advance,
Eitan Iluzz.you can use the following code to get the windows logged on user
data: username type string .
CALL METHOD cl_gui_frontend_services=>get_user_name
CHANGING
user_name = username
EXCEPTIONS
CNTL_ERROR = 1
ERROR_NO_GUI = 2
NOT_SUPPORTED_BY_GUI = 3
others = 4 .
CALL METHOD cl_gui_cfw=>flush
EXCEPTIONS
CNTL_SYSTEM_ERROR = 1
CNTL_ERROR = 2
others = 3 . -
DBMS_DATAPUMP; how to get the log file of a job?
Hi
I want the user to be able to see the logfile of his job from another session.
this is my procedure
create or replace procedure get_job_log (p_job_name IN varchar2 )
is
hdl_job number;
l_job_state VARCHAR2 (20);
l_status sys.ku$_Status1010;
l_job_status sys.ku$_JobStatus1010;
l_job_logentry sys.ku$_LogEntry1010;
l_job_logline sys.ku$_LogLine1010;
begin
hdl_job := DBMS_DATAPUMP.ATTACH(
job_name => p_job_name
,job_owner => 'CLONE_USER'
DBMS_DATAPUMP.GET_STATUS(
handle => hdl_job
,mask => dbms_datapump.ku$_status_job_error + dbms_datapump.ku$_status_job_status + dbms_datapump.ku$_status_wip
--,timeout => 15
,job_state =>l_job_state
,status =>l_status);
l_job_logentry:=l_status.wip ;
for x in l_job_logentry.first .. l_job_logentry.last loop
dbms_output.put_line (l_job_logentry(x).LogText) ;
end loop;
dbms_datapump.detach(hdl_job);
end;
/when I run it for the first time, it works... kindof...
but my problem is that if I try running it again I get:
ORA-31626: job does not exist
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 79
ORA-06512: at "SYS.DBMS_DATAPUMP", line 902
ORA-06512: at "SYS.DBMS_DATAPUMP", line 3407
if I close sqlplus session , open new one and run - it works. So what is the issue here? Is detach not enough? What else should I do?
my version is 11.1.0.6
UPDATE.
Looks like the above is not true. It doesn't error if it runs to the end of code... The problem seems to happen only when exception occures and .detach is not called. So this is not an issue anymore.
But I still don't get a decent performance from the .get_status function. Sometimes it just hangs and errors on timeout.
Still the question is: How can I get the LOG of the session using DBMS_DATAPUMP from another session and output it on the screen?...
Edited by: Andrei Kübar on Dec 23, 2011 12:44 PM
Edited by: Andrei Kübar on Dec 23, 2011 12:57 PMI believe I found a solution
I am now running the above code only 1 time but in a loop and inserting output into a table, so that user can query the table and see where the job is
here's the code I'm using (partially copied from http://psoug.org/reference/dbms_datapump.html)
l_job_state:='UNDEFINED';
while (l_job_state != 'COMPLETED') and (l_job_state != 'STOPPED') loop
DBMS_DATAPUMP.GET_STATUS(
handle => hdl_job
,mask => dbms_datapump.ku$_status_job_error + dbms_datapump.ku$_status_job_status + dbms_datapump.ku$_status_wip
--,timeout => 15
,job_state =>l_job_state
,status =>l_status);
if (bitand(l_status.mask,dbms_datapump.ku$_status_wip) != 0) then
l_job_logentry:=l_status.wip ;
if (l_job_logentry is not null) then
for x in l_job_logentry.first .. l_job_logentry.last loop
--dbms_output.put_line (l_job_logentry(x).LogText ) ;
writelog (l_job_logentry(x).LogText );
end loop;
end if;
end if;
if (bitand(l_status.mask,dbms_datapump.ku$_status_job_error) != 0) then
l_job_error :=l_status.error ;
if (l_job_error is not null) then
for x in l_job_error.first .. l_job_error.last loop
dbms_output.put_line (l_job_error(x).LogText) ;
writelog('Error: '|| l_job_error(x).LogText) ;
end loop;
end if;
end if;
--dbms_output.put_line ('Current job state: '||l_job_state);
writelog ('Current job state: '||l_job_state);
end loop;thanks all for your help -
How to get the SharePoint user context available in custom federated search connector?
Hi,
I'm investigating the possibilities for developing a federated search connector for SharePoint 2013 Online. This should allow us to search a customer's database through our custom developed application (both on premise). We intend to develop
an remote federated search connector (using OpenSearch protocol) and configure a result source in SharePoint for that connector.
The problem I'm struggling with is that I want different search results from this ressult source based on the permissions of the user that is executing the search. The admin should find a lot because he has permissions on certain items in the custom
application. The employee should find just a few because he has no permissions on certain items in the custom application. We developed the custom application ourselveds and the search in that application is taking permissions into account: it doesn't
return results if a user doesn't have sufficient permissions. That part works just fine.
However, to be able to use that, the remote federated search connector must be able to identify the user that is executing the search in SharePoint Online. So: how do I get the SharePoint user context in the remote federated search connector?
I know I can configure the replacement token {User.Name} in the result source configuration, but that gives me the name of the user only. This is insufficient to get an identity, principal, token or whatever, that let's me log in into our custom
application.
I also know that in a provider hosted app, user context is passed through from SharePoint and is known within the remote app. But since result sources need fixed (or anonymous) credentials configuration for connecting to the remote federated search connector,
all users will be using the same credentials. This makes me assume these credentials are for securing communication and cannot be used within the execution of the search within the remote federated search connector.
At the moment, I'm stuck. Any help will be greatly appreciated.
Cheers,
Ruud.Hi,
Per my knowledge, we cannot get the SharePoint user context available in custom federated search connector with other methods.
Here is a similar thread for your reference:
https://answers.atlassian.com/questions/263735/atlassian-sharepoint-connector-federated-search-authentication-and-authorization
Thanks,
Linda Li
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]
Linda Li
TechNet Community Support -
How to use user id of the logged user (in Application) in the Valueset
Hi All,
I want to Create a Table Value Set.
i want to Filter the values in value set based on the User id by which user has logged in Application.
How to get user id and how it can be used in Table Value set Query.
Please guide me...
Waiting 4 ur response.
Thanks
SheetalHi Sheetal,
You can call the function fnd_global.user_id to get the current user identifier of the logged in user.
Regards,
J.
SELECT fnd_global.user_id
FROM dual -
How to get the Current User on the UI page?
All,
Could you please let me know how to get the Current user on the UI input page , i need to display the current user ID when some one clicks the submit button, i want o get the current user to display in the javascript alert box.
Edited by: 951930 on Oct 24, 2012 12:21 PMlucky,
my schema has already defined for
<user mapField="USER_ID" default="%CurrentUser"/>
and in my UI page
<td oraLabel="user"></td><td oraField="user" id="userId" ></td>
and my javascript
function showUserId () {
var curUser = document.getElementById('userId').value;
alert(curUser);
and i have called this function on my submit button, but i am not able to get Current Logged User ID value to show in the alert nor able to show the current logged user on the UI page.
my requirement is on custom UI page i need to show Current Logged User in one corner of the page and also need to show the same user in alert when he submits the button.
Appreciate for the help.
Edited by: 951930 on Oct 25, 2012 8:42 AM
Edited by: 951930 on Oct 25, 2012 9:06 AM -
How to get the logged in username or how to set the acquiredby?
We are using BPEL 10.1.2.0.2.
We have implemented CAS/OID to work with the TaskList. Our issue is with obtaining the logged in username while in the BPEL Workflow. Acquired by variable is not populated even after the task is acquired. Explicitly setting Acquired By doesn't work either (still comes as null).
This might be something quite simple, but I am not able to figure it out. Is there a way to get the logged in username or the user who acquired the task while in the BPEL workflow?
Thank you!I have no longer access to the custom worklist application of 10.1.2 but in 10.1.3 you can access it through:
SessionStore sessStore = SessionStore.getInstance(request.getSession(false));
String userName = ((IWorkflowContext) sessStore.get(WorklistappConstants.SESS_ATTR_WORKFLOW_CONTEXT)).getUser();Kind Regards,
Andre -
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.
Thanks3 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. -
How to get the logged in userId value in adf task flow
Hi,
I have created an adf task flow and deployed the same in application as an adf library.
Now I need to get the Logged in User ID value in the adf task flow which I created.
Based on this userid I need to run query to fetch the data related to the user from the database.
Please help/guide me to solve this issue.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. -
Query to get the windows-user(os)
Hallo,
I have a windows operating system and on this system is oracle database with the
spatial-option installed. Now I wanna create a trigger which writes in a table if
a geometry is updated. In this table I wanna write the new geometry, the time of
the update and the windows-user that logged on the windows operating system. I
don't wanna know the database user.
What is the sql-query to get the windows-user?
Thanks KatrinAs an alternative, use the SYS_CONTEXT function to get some of this info.
oracle@fuzzy:~> sqlplus test/test@XE
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Jan 2 16:32:53 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
SQL> select sys_context('USERENV', 'HOST') Host,
2 sys_context('USERENV', 'IP_ADDRESS') IP,
3 sys_context('USERENV', 'OS_USER') OS_User,
4 sys_context('USERENV', 'AUTHENTICATED_IDENTITY') Identity
5 from dual;
HOST IP OS_USER IDENTITY
fuzzy 127.0.0.2 oracle test
SQL> More info at http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14200/functions165.htm#i1038176 -
Problem calling web service: Error while getting the ORACLE user account
Hi All!
I was able to call the service EGO_ITEM_PUB-PROCESS_ITEM, but after implemented some patches, suddenly I get this error as result:
- <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
- <env:Body>
- <OutputParameters xmlns="http://xmlns.oracle.com/apps/ego/soaprovider/plsql/ego_item_pub/process_item__1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<X_INVENTORY_ITEM_ID xsi:nil="true" />
<X_ORGANIZATION_ID xsi:nil="true" />
<X_RETURN_STATUS>U</X_RETURN_STATUS>
<X_MSG_COUNT>1</X_MSG_COUNT>
<X_MSG_DATA>Encountered an error while getting the ORACLE user account for your concurrent request. Contact your system administrator.</X_MSG_DATA>
</OutputParameters>
</env:Body>
</env:Envelope>
Any ideas?
Thanks,
Konradhsawwan wrote:
Hi,
I was able to call the service EGO_ITEM_PUB-PROCESS_ITEM, but after implemented some patches, What are those patches?
# Patch 8407693:R12.TXK.B ISG: Service Generation Failure - Java Compiler Could Not be Found
# Patch 8459663:R12.OWF.B : Mandatory Consolidated One-Off Fixes for ISG on Top of 12.1.1
# Patch 8916358:R12.OWF.B : Service Timeout When Invoking Services Deployed to Integrated SOA Gateway
# Patch 9349321:R12.OWF.B : Issue with item Bulk Load in Oracle Product Hub PIP 2.4
# Patch 9446625:R12.FND.B : 1OFF:8995921:12.1.1:12.1.1:PERF : LoginModules Performance Issue
# Patch 9070077:R12.OWF.B : 1OFF:9045280:12.1.1:12.1.1:Invoking a Web Service Requires NLS Lang When It Should be Optional
# Patch 9153106:R12.OWF.B : IREP_Parser.PL Exits with GETPWUID Function IS Unimplemented in PARSER.PM -> Wichtig für ISG (für custom pl/sqls im ISG)
# Patch 9004712:R12.OWF.B : One-Off for IREP PARSER on Top of Oracle E-Business Suite Release 12.1.1 -> Wichtig für ISG (für custom pl/sqls im ISG)
IAS:
# Patch 8607523 for the AS version 10.1.3.4
Oracle Support told me that I need this patches because of some other problem (generating wsdl and deploy for BOM_BO_PUB package does not work in my environment) and since that, the process_item call stopped working!
btw: The EGO_ITEM_PUB-PROCESS_ITEM call for an existing item still works (I can modify the description), but creating a new item does not work anymore. Here are the parameters I send to the web service:
Header:
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<wsse:UsernameToken>
<wsse:Username>sysadmin</wsse:Username>
<wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">sysadmin</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
<q0:SOAHeader/>
Body:
<q1:InputParameters>
<q1:P_API_VERSION>1.0</q1:P_API_VERSION>
<q1:P_INIT_MSG_LIST>T</q1:P_INIT_MSG_LIST>
<q1:P_COMMIT>T</q1:P_COMMIT>
<q1:P_TRANSACTION_TYPE>CREATE</q1:P_TRANSACTION_TYPE>
<q1:P_ITEM_NUMBER>KHR_WS_05</q1:P_ITEM_NUMBER>
<q1:P_DESCRIPTION>desc2</q1:P_DESCRIPTION>
</q1:InputParameters>
Thanks,
Konrad -
Get the NT user id from the getRemoteUser
Hi,
Presently, we have an intranet application ASP running under NT, when we receive
a request we can extract the NT user id from the getRemoteUser method.
Now, we want to rebuild this application with Servlet/Weblogic 4.5.1 under Unix,
but i not able to get the NT user id.
Does anyone know if I can do that ?
PatrickNeil,
Does that mean that you can't get the CGI variables? There is no other solution
besides logging in the user? I'm trying to avoid this - as it would annoy our
users after awhile.
Thanks.
"Neil Smithline" <[email protected]> wrote:
Hi Patrick,
Do you mean the NT user ID of the server or of the client? I'm guessing
the
client. There is no way to get the user ID of the client. By using
the NT
realm you can allow them to reauthenticate with their NT username and
password. I understand that isn't quite as nice as the scenario you
have
with ASP though.
--- Neil
"Patrick Parent" <[email protected]> wrote in message
news:3a966b3d$[email protected]..
Hi,
Presently, we have an intranet application ASP running under NT, whenwe
receive
a request we can extract the NT user id from the getRemoteUser method.
Now, we want to rebuild this application with Servlet/Weblogic 4.5.1under
Unix,
but i not able to get the NT user id.
Does anyone know if I can do that ?
Patrick -
Get the connected users count from sql server using powershell
Hi,
I am working on SharePoint 2013,I am having SQL server 2012.
I want to get the Connected Users count from sql server using power shell.
Can any one please let me know how to implement.
Thanks in advance.
Regards,
Phani Kumar RSorry Tom, I dont like to hear "There is no way" :-(
There is always a way in computer to get what you need (at least it is good as Rule of thumb). I am not sure we will find it here (in a voluntary supporting forum).
Now we (or better the architect of their system) should think of the way :-)
Of course doing so in the forum, while we do know the system and only got a glimpse on what is needed, is not the best idea. I will point some issues which can be related to a solution. Those are not a solotions as it is but something we can use for a solution
once something look in the right way.
* A web connects counter is one of the easier thing to do. The basic idea is just to use the connect event and the disconnect event an adding 1 or removing 1 from the counter. This is best to do in the application using static variable as any way the second
the application is down the counter can be go to hell as we know there is no one connect (there for a counter do not use database usually). Using a web dot-net (or asp 3) application this is done most of the time using the global.asa/global.asax file, which
include the application and session events. for example using the method Session_Start
protected void Session_Start(object sender, EventArgs e) {
// Code that runs when a new session is started
* IIS have a build-in loging system where we can log each and every request/response or only logins users. There is lot we can do with this log files including data mining. Using small bulk insert script we can use the SQL agent to insert those logs to the
database and get the information we need.
* any web developer i want to believe know about the Fiddler application which we use to monitor traffic. A proxy is not the only way to to monitor traffic (it is not good for our case as this is in the client side), there are several option in the server
side.
* SQL trigger on logon can be use to get information on who is loging on and can be logging only specific source (like our sharepoint IP or any sharepoint application). This information (what is the application which connect to the server can be retrive
in several solution without using a trigger as well)
*** (I'll be brief ... I'm getting bored... probably the reader feel the same)
* using extended events and/or profiler we can monitor any connection and save the data or just remember it in shared (static) variable (this
blog show how to do it by the way). Again we can monitor specific application or use any filter in order to get only the sharepoint users
.... and i can continue for several days more :-) ...
"If there is a willing, then there's a way"
"If you can't do it, Then someone else probably can"
"Never say never"
I hope this help somehow :-)
[Personal Site] [Blog] [Facebook]
Maybe you are looking for
-
Excel 2007 and Smartview 11.1 file open slow
We are in the process of upgrading to HFM system 11.1 and smartview 11.1.1.3 and as part of this process we are starting to use Excel 2007. I am encountering an interesting problem when opening files in Excel 2007 using smartview 11.1 and I am wonder
-
can any one help me to fix my ipod touch it wont recognized by my laptop and itunes its said usb not recognized its freeze iin display usb and itunes logo pls help me pls itried all the uninstall unknown device and reboot the ipod and restore pls hel
-
Good evening, I've had the TV since April of 2011 and it's always been at least reasonable. I've had a few problems trying to set up little things but all have worked out fine eventually. This problem ties in with wanting to use an aftermarket speak
-
Looking for an Adobe PDF form desinger
I am looking for someone who is familiar in designing PDF forms. I have a project that I need completed. Please let me know if you are interested. Thanks,
-
"Checkout" buttons not working
Hello Mac Community - I have noticed with increasing frequency that when shopping on a web site, all in-site navigation buttons work in except for the one I really need to work: the "Checkout" button. Perhaps it's a sign from the universe about my s