VMware Cloud Community
mayurbhokase
Contributor
Contributor

Privilege are not working correctly in vSphere web client SDK 6.5. (html)

Hi,

I am using vSphere web client SDK 6.5 for vCenter plugin development and working on HTML client.

I want restrict few vCenetr users to access my plugin through web client, so I have used privilege for it.

I have added extension in plugin.xml with following code :

<extension id="com.mycompany.mainView">

        <extendedPoint>vise.global.views</extendedPoint>

        <object>

            <name>MyApp</name>

            <componentClass className="com.vmware.vsphere.client.htmlbridge.HtmlView">

                <object>

                    <root>

                        <url>/vsphere-client/mycompany/resources/abc/view/abc.html</url>

                    </root>

                </object>

            </componentClass>

        </object>

       <metadata>

           <privilege>mycompany.global.viewBasicInfo</privilege>

       </metadata>

This piece of code is working correctly on FLEX client and I am able to access my plugin, however same code on HTML client is showing message which showing that, "You have no privileges to view this object or it does not exist." Even I logged in with Admin user credentials which has all privileges.

Or is there any alternate way available to restrict vCenter user without using privileges?

Please assist.

3 Replies
zenivox
Hot Shot
Hot Shot

I frankly don't consider the html5 web client as 'the' client for a production environment. Just my personal experience anyway. I can also confirm that I have problems managing the vSphere permissions among other things with html5. I'm still using Flash client.

Avi45
Contributor
Contributor

I also encountering the same issue, any workaround?

0 Kudos
zenivox
Hot Shot
Hot Shot

use the flash client..

0 Kudos