get the username on vsphere client of web

Hi all

How can we get the currently logged in user name in the web client of vsphere. Son of https://communities.vmware.com/message/2297455#2297455 and https://communities.vmware.com/message/2246358#2246358 have been useful, but in the nets, code connects to the vCenter server, I want to get currently logged user. How can we get UserSession object without calling vimPort.login. Is it possible to get connected vimPort currenlty logged the user object in the web client of vsphere.

I need to know the name of the current user logged to the customized access privileges to give in my plugin.

Any help will be greatly appreciated.

Best regards

Sumit Tyagi

UserSessionService.getUserSession () .userName gives you the username.

Tags: VMware

Similar Questions

  • Can you explain to me why I do not get the same result (vSphere Client Web vs API)

    Hello

    When I create a new switch logic of vSphereWebClient/network & Security/LogicalSwitches

    I don't see a RESTClient 'GET nsx_url/api/2.0/vdn/virtualwires» '.

    Why?

    Thank you

    Logical switch how do you have in your environment. This particular API call you are using has a paging feature and by default returns only the first 20 objects.

    The NSX 6.2 API Guide

    where? PageSize = XX & YY = startindex specifies the results of the query to the major pages. The default pagesize is 20 and default startindex is 0.
  • Sample SDK error. Could not load the module on vsphere-client/globalview-ui/locales/globalview-ui-en_US.swf resources.

    I add the service global services and global services-user interface on the server of virgo and start the server.

    When I access vsphere web client, I get an error:

    Could not load the module on vsphere-client/globalview-ui/locales/globalview-ui-en_US.swf resources.

    I add the program chassisRackVSphere, I got the same error.

    Is there something wrong? What should I do for this?

    Please read the FAQ and tutorial doc in the Directory SDK docs, it's a typical error when you forget to compile the resources in your project file.

  • How to migrate vsphere 5.0 plugin in vsphere client of web 5.1

    How to migrate vsphere 5.0 plugin in vsphere client of web 5.1

    Support for "c# plugins" in the Web Client is covered in the Program Guide.

    see Using the Legacy Script Plug-Ins with the Web Client vSphere

  • When you try a yahoo search I get the error message "windows cannot find (web site name) make sure you typed the name correctly.

    Original title: error message

    When you try a yahoo search I get the error message "windows cannot find (web site name) make sure you typed the name correctly.

    Hello

    ·         What web browser do you use?

    ·         Would which site you find?

    ·         The issue is that with Yahoo search?

    ·         Exactly how you try to search? Web site or toolbar in Internet explorer?

    You try to use the Bing search engine to search for Web pages online. To access Bing search engine type www.bing.com in the address bar. Please provide us with more information about the issue to help you further.

  • How to connect to the server ESXI vSphere Client side WAN?

    How to connect to the server ESXI vSphere Client side WAN?

    through firewall

    I tried to open the ports 902 903, 443... and so on...

    and I tried several sites to find the solution but...

    nothing works...

    connectivity works on local network

    Help, please...

    Source Destination Port

    ESXI 443/TCP client

    ESXi 902/TCP client

    ESXi 902/TCP Client

    ESXi 902/UDP Client

    ESXi 903/TCP client

    Edit: Also check if the firewall ESXi all IP addresses are allowed to connect:

    Example:

    See attachment...

  • Avoid or prevent mirroring of the console in vSphere Client

    I'm looking for more information on how to avoid and prevent the mirroring of the console in vSphere Client. As default the console could be perceived by several users at the same time. All those who have access to vSphere Client and server could connect and watch the console.

    Is it possible to configure how the Console should behave?

    Cordially Jens

    You can add the RemoteDisplay.maxConnections setting in the advanced configuration of the virtual machine settings and set it to 1. If you want to do it without interruption of service, add the following line to each of the. VMX files:

    RemoteDisplay.maxConnections = 1

    After editing the VMX file, vMotion, the machine to re-read the config (otherwise the changes do not take effect until the reboot), and who should do it. There is a script PowerCLI here that will try to change this setting on all of your virtual machines.

  • vSphere Client Plugins Web - how to debug the Flex INTERFACE

    Hello:

    It seems that, in order to develop, Flex at base of plugins using the vSphere Client Plugins SDK Web and get 'full integration', the developer is encouraged to use a MVC framework which is part of the SDK. In addition, I see things that seem to indicate that, once the plugin is runing in the context of the VC, actions will be triggered by the context running, etc...

    It may seem that in order to develop a base Plugin, the user interface must be developed, compiled and deployed each time.

    How should we do about writing a typical user interface application where the developer is able to set breakpoints, etc...? I can do it now if I do not use the hooks of VmWare, such as previously mentioned, but what if I wanted to exploit the pegs supplied?

    Thanks in advance for the help.

    Have you read the SDK documentation in questions before asking your new question?

    Debugging of all is possible.

  • vSphere client of web posting the inventory is empty

    When I connect to my web as admin@system-domain vsphere client, I see an empty inventory.

    In vsphere client it is the things you

    any idea?

    Add + assign permission to user "admin@system-domain" required on the virtual tab permissions Center.

  • VSphere client light web - cannot select boot from ISO via the CD/DVD drive

    I had used P2v to virtualize a Windows 7 machine and after the start he said that the "the boot selection failed because a required device is inaccessible. I think I need to run a repair using Windows 7 image and possibly launch a fixboot and fixmbr, but when I try to adjust the settings of the virtual machine using the web client to boot from the ISO it displays an error and the ok button to save the settings is grayed out. How is it doesn't let me do this?

    Never mind. I got the VM running in Vsphere client while trying to change the setting in the web client.

  • The vSphere Client Plugin Web WebService call

    Hello

    I have found no examples of vSphere call Web Service from Web Client Plugin. How can it be done? I have to create some adapter data/property provider and call webservice that somehow?

    See the samples/vsphereviews/vsphere-wssdk-provider, it shows how to use vSphere SDK WebService.

    See doc html at docs/samples-doc/vsphereviews.html#vsphere-ui.

  • Could not access console VM in vSphere client of web 5.5 - action "open console" is not found

    I use vSphere Web Client version 5.5.0 with vCenter Server Appliance 5.5.0.10300 build 1945271.  When I try to access the console of a virtual computer, I get the error "Cannot find action"open console"  I'm running Win7x64 with Chrome v37 and the latest version of Java.  I installed the VMware client integration plugin and restart the browser and the problem persists.

    All other functions, I've tried seem to work, I only have a problem with the functionality of the console.

    What can I do to fix this?

    Try to uninstall the plugin and install it by clicking with the right button-> run as administrator and then try to start the console. See if it works for you.

    Concerning

    Girish

  • Extend the data via vSphere Client store - error ' call 'HostDatastoreSystem.QueryVmfsDatastoreExtendOptions' object 'ha-datastore System' on ESXi 'IP' failed '.

    Hi @all,

    I want to thank my datastore on my 5.1 esxi.

    When you extend the data store on the vSphere Client Console, I get the error message:

    German: Call von 'HostDatastoreSystem.QueryVmfsDatastoreExtendOptions' as Objekt "ha-datastoresystem" auf fehlgeschlagen ESXi 'IP' ist.

    English: Call 'HostDatastoreSystem.QueryVmfsDatastoreExtendOptions' to object "ha-store system data" in ESXi 'IP' failed

    Anyone an idea why I can't extend the data store? The new drive is correctly detected.

    Best regards

    Andreas Acker

    Hello

    This seems to be a local data store. ? This is where the ESXi host is installed. ?

    Thank you
    Avinash

  • Cannot save orchestrator in vsphere client of web (v5.5)

    Hello

    We have difficulties registration orchestrator to use in the web client.  Control https://**server-ip**/mob shows that it is registered as an extension and that heart rate were received recently.  However, even after a reboot of the vcenter server services and services of orchestrator, logging out and back in the vsphere client, try to save it manually in the web client, etc is not always appearing.

    When you try to save it manually, what format should be used?  We tried several methods

    1. https://FQDN:8281

    2 https://FQDN:8281 / api

    3. COMPLETE DOMAIN NAME

    4 FQDN:8281

    5. INTELLECTUAL PROPERTY

    6 https://IP

    7 https://IP:8281

    8 https://IP:8281 / api

    All of these methods give a negative result.

    Also, even if SINGLE sign-on is configured, and perform a connection test using configuration orchestrator web page succeeds, we are unable to log into the customer orchestrator!  It indicates that the user is not allowed, even if it's the same user specified in the orchestrator as administrator of the active directory configuration.  Just in case this might help, we use MS SQL Server Enterprise 2012 for the two vcenter orchestrator and.  In order to ensure that orchestrator db was fully complient, we duplicated the DB original vcenter then creates a user in the connection to the db vco and populated SQL tables.  The reported configuration wizard success.  (Note we also tried it with a fresh database and let orcestrator populate tables - which was also successful, but we still had the same problems with integration and customer sign; so to maximize compatibility, in case the db does not have the necessary objects, we have reproduced the vcenter db... the reason for this wsa as orchestrator can use the vcenter server db if installed in "easy" mode)

    We have searched communities and found many people with the same problem, but none of the cases that we found was actually marked "resolved."

    Could someone help us please with it?  Although version 5.5. impressive regarding the progress made and new features, etc., it has been an absolute nightmare of application.  I hope that VMware is working on fixes of bugs because if we had it to do over again, we would stay with version 5.1 for awhile.

    Thanks in advance for your help.  If anyone has had problems with the installation of version 5.5 (fees or upgrade), we can help... just ask me.  At our facility, we had about 6 or 7 different issues to which we have documented resolutions (most are easy to solve, but in a production environment, no downtime is not good!

    Sincerely.

    Post edited by: sietec2 - changed the ports that have attempted to 8081 8281, typo.

    Solved!  After the suggestions from you, I had a hunch and checked the file 'vco.properties'... then noticed something strange.  Here is the content of the file

    INSTALLER_UI = SILENT

    USER_INSTALL_DIR = C: / $Program Files$ / $$ / $VMware Infrastructure$ / $Orchestrator$ / $

    CHOSEN_INSTALL_SET = CS

    VC_Database_User_Name =

    VC_LogOn_User_Name = administrator

    JDBC_URL = jdbc:vdb:vcdb

    VC_web_Service_Http_Port = 8080

    VC_web_Service_Https_Port = 8443

    VC_Http_Port = 80

    VC_Https_Port = 443

    Upgrade_or_Fresh_install_Flag = fresh

    SSL_Certificate_location = C:\ProgramData\VMware\VMware VirtualCenter\SSL\

    Customer_information = Windows user #.

    [email protected]

    SSO_URL =https://Our.domain.com:7444 / sso-adminserver/sdk

    [email protected]

    LS_URL =https://our.domain.com:7444/lookupservice/sdk

    IS_URL =https://our.domain.com:10443 /

    [email protected]

    SSO_DISABLED = 0

    Notice the line "BOLD", VC_LogOn_User_Name, went to the administrator.  Change that to administrator@{ourdomain.com} and restarting the server orchestrator, then logging on and in the web interface of vcenter server resolved the problem and the server of the vco appeared!

    So if anyone has the issue where it won't register in the web client, check the server.properties file in {orchestrator_install_root} and make sure the log the user name is correct for your environment!

    Thanks to those who helped!

  • Cannot access the server from vsphere client

    Hi, people.

    After having been very well for a few weeks, now I'm unable to access my server from vSphere client, I get an error of:

    Call 'ServiceInstance.RetrieveContent' to object 'ServiceInstance' on the server '192.168.6.2' failed.

    I've attached screenshots of the error message.

    The pc and the server are on the same subnet, and the error comes from several PCs that try to connect.

    Help, please!

    NM

    So I think you must restart these services as vivari said.

    If you are unable to log in via ssh, you must have access to the consoles. Then, you can restart the services or enable ssh to do via ssh.

Maybe you are looking for

  • RAM for Satellite Pro 6100

    HelloI need to know if I can use Bank (2100 or 2700) SODIMM 1 GB OEM for 6100 SatPro. Is it recognized by the motherboard? I read the specs on the site of kingston, they don't mention Bank of 1 GB. Does anyone know sth. more info on this?Thank you!!

  • Firefox and Java

    I use Windows XP Pro and Firefox 41.0.1. Is there a problem with the Java site when you use the 41.0.1 Firefox Version? When I go on the Java site to check the latest update of Java is installed, the box does not analyse the last update. I checked th

  • I can't get an update of safety for installation.

    Everything installs except this one.  "Security Update for Microsoft.NET Framework 1.1 SPI on Windows XP, Windows Vista and Windows Server 2008 X 86 (KB2656353).  I have a DELL with Windows XP Professional.

  • Audio Inspiron B130 stopped working in XP

    Eight years and audio suddenly stopped: (.) Ran the XP Help without success. From Dell.com, ran to diagnose a problem with PC Doctor without success. A ran difficulty he Windows Audio Playback convenience store but he "encountered an unexpected error

  • Do not get the email sent by APEX_MAIL.send in some areas

    HelloI am trying to send an email using apex_mail.send. I do mail successfully in my gmail account, but in my identification of email to office and an area that I do not receive the mail.No error shown against these IDs, but do not in the APEX_MAIL_L