How get the current user system ?
I want to synchronize the portal with my database; but i need to know the system
current user to establish a relationship between UserCreator and UserCreated
in my database
As far as I know, you can't get that information directly
from air.
A strange and roundabout "hack" would be to get the string of
the user's documents folder or desktop using
"air.File.desktopDirectory" or "air.File.documentsDirectory" and
parse it to get the user's name.
This is, of course, VERY unreliable, but may be the only way
to get the currently logged in user's name.
Someone please correct me if I'm wrong.
Similar Messages
-
How to get the current user name of the host who is occupying a specific VM?
I'm developing a winform app with c# code to manage Hyper-V. I need to remind someone if he/she would take a VM which has already been occupied by others.
Is there any powershell cmd or WMI interface to get the current user of a specific VM?
Thanks!Hiya,
from cmd there are quser(Query user) and qwinsta(Query Session)
which should give you that. Don't know how you can incoorperate that in C#, but that should give you something to work with :)
https://technet.microsoft.com/en-us/library/cc785434.aspx
https://technet.microsoft.com/en-us/library/cc788125.aspx -
How to get the current logical system?
Dear Abapers:
I can't find the logical system value from the table SYST, pls tell me how to get the current logical system name, Thanks!Hi,
Check with the table T000, the Logical system field name is LOGSYS.
Regards
Thiru -
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 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 -
How can I get the current user an resource context in a portal JSPDynPag
How can I get the current user (com.sapportals.portal.security.usermanagement.IUser?)an the resource context in a portal component (JSPDynPage)?
Thanks.Hi Jon,
Here is the code to get the current user and resource context in your JSPDynPage:
IPortalComponentRequest currentRequest = (IPortalComponentRequest)pageContext.getAttribute(javax.servlet.jsp.PageContext.REQUEST);
com.sapportals.portal.security.usermanagement.IUser contextUser = (com.sapportals.portal.security.usermanagement.IUser) currentRequest.getUser().getUser();
ResourceContext resourceContext = new ResourceContext(contextUser);
Greetings,
Praveen Gudapati
p.s. points are always welcome for helpful answers -
How can I get the current user and the current page?
Hi everyone
Question..
It is possible to get the current user (from the user's database on apex) and the current page? (I mean, if I'm in page 4 be able to query a variable / function or something which could give me the current displayed page)
Thank you very much... I'd been researching without success :-S so I'll appreciate your help
Regards,
FuryFury,
If the user has authenticated, :APP_USER is the name that was used. The current page id is in :APP_PAGE_ID.
Although I showed bind variable notation for those, & substitution format and v() notation are also available for referencing developer-defined items or built-in names. See the User's Guide for more details.
Scott -
How to get the current user name in Provider hosted app using appOnlyAccessToken
Hi,
Please help me, how to get the HostWeb UserName in Provider Hosted App
i have Provider hosted App, and Anonymous Authentication is enabled on AppWeb, using appOnlyAccessToken
Below code does not return current user who Log in in hostweb, it is returning
SharePoint App (app@sharepoint)
Web web = clientContext.Web;
clientContext.Load(web);
clientContext.ExecuteQuery();
clientContext.Load(web.CurrentUser);
clientContext.ExecuteQuery();
clientContext.Web.CurrentUser.LoginName;
Below code gives a blank name when Anonymous Authentication is enabled, if Anonymous Authentication is disabled
app prompts for credentials
HttpContext.Current.User.Identity.Name
Thanks
RamHi,
Since you are using a provider Hosted app if you want to get the current logged in name than do not use AppOnlyAccessToken else use AccessToken which is App + user Context AccessToken.
then
Web web = clientContext.Web;
clientContext.Load(web);
clientContext.ExecuteQuery();
clientContext.Load(web.CurrentUser);
clientContext.ExecuteQuery();
clientContext.Web.CurrentUser.LoginName;will return proper user Name.
HttpContext.Current.User.Identity.Name will never return the user as this object is related to IIS server of your App Server not sharepoint.you should set this as Anonymous in case of provider hosted app.you can download the below sample which uses the AccessToken which has user name in it.https://code.msdn.microsoft.com/Working-provider-hosted-8fdf2d95
Whenever you see a reply and if you think is helpful,Vote As Helpful! And whenever you see a reply being an answer to the question of the thread, click Mark As Answer -
How to get the current User Id
Hi,
is there any system variable containing the current "user code"
because, based on current user code, i would like to get the branch from OUSR, so that, one query can display only those records pertaining to that branch.
Thanks & Regards,
KrHi
You can create a formatted search to get and the following query:
SELECT T0.U_NAME FROM OUSR T0 WHERE INTERNAL_K = $[USER]
Paulo Calado
SAP Business One Forums Team -
Getting the current operating system information through java
hi ,
How can i get the information about the current operating system on which i am working through the java application.System.getProperties() and look through the results. All kinds of interesting stuff in there.
-
How get the user initiador in gp?
hi all
How get the user initiator of a process GP with a Web Dynpro Callable Object?
because with this code I get the current user...
IWDClientUser wdUser = WDClientUser.getCurrentUser();
IUser user = wdUser.getSAPUser();
String userid = user.getUniqueID();
thanks!Hi,
processId is the design time template id of the process. This you can find in the instantiation tab while designing the process.
Code for getting user context:
IWDClientUser wdUser = WDClientUser.getCurrentUser();
IUser user = wdUser.getSAPUser();
IGPUserContext userContext = GPContextFactory.getContextManager()
.createUserContext(user);
IGPRuntimeManager rtm = GPProcessFactory.getRuntimeManager();
Hope it helps.
Regards,
Srinivasan Subbiah -
How to get the online user who are browse some view?
i want to get the current users who are browsing some view in EP6.additonal:which is developed as web dynpro project.
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 find the current User Name and stored in which table
In which table the current user name (Login) is stored?
Hi Mohanapriya
The query provided by Gordon can not run on query generator as the $USER is a runtime variable.
You need to save it to a query then use it in a FMS(Formatted Search.)
Just open a form(ex:sales order ), click the field in which you want to show the user name,
then press ****+F2 or Tools->Search Function->Define,
Search by Saved query,then assign the save query to the field.
After that ,you can run the FMS(shift+F2) to get the current user info.
Regards,
Syn Qin
SAP Business One Forums Team -
How to display current user using HTML portlet
Hello,
Is it possible to show any text such as Greeting, Current User (ex, Hello, Kevin) using HTML portlet. Can I use <oracle></oracle> tags to get the current user from the API?
Please suggest me.
Thanks,
SatishThanks for your suggestion. There is also another way for this:
In a Portal text field (CMS item) you can type
#USER# to display the username of the authentificated user or
#USER.FULLNAME# to display the full name.
Thanks,
Satish -
my mac is running 10.5.8, I bought a new Nano, itunes is prompting me to get the current itunes, but my mac will not take it, states I need 10.6.8. How do I get that? When I run a software update, system says there is none. Help
Click here, check that your computer meets the requirements, buy and install the DVD, and then run Software Update.
(73181)
Maybe you are looking for
-
Firstly, if this is the wrong category, I apologize. I used a prepaid credit card on my apple account to purchase an app add on for $2. The credit card only had $2.50 on it, which is why I used it. Now that I spent what was on it, I am not able to do
-
Best way to set up partitions on 250GB external drive
Hi all, I've decided to go with an Iomega eGo 250-GB FireWire portable drive to back up my iBook's hard disk (30 GB) plus to store my photos and maybe hold a bootable copy of OS9. This is my first time using an external drive, so I don't really know
-
Incoming Mac Mail Messages Arrive, then Dissappear
Have had my iMac for about a month, month and a half. Email has been working fine. Starting yesterday, when I open Mail, I see the new messages coming in at the bottom. By that I mean, the number of messages arriving. I also happens to show 0KB/sec.
-
In the about:config page the keyword.enabled value is set to "true". And the keyword.URL value is set to "default". When I type a phrase in the Address Bar, a page with a Yahoo! search result opens unlike intuitively loading the relevant page using G
-
Video transfer problem from pc to ipad A1219
video transfer problem from pc to ipad A1219