Permissions for user Oracle vRM

People,

The permissions that are required for the Oracle user vRM?

Thank you

Cormac

The user oracle, at least should be GRANT-ed the roles/privileges to follow:

  • "CONNECT".

  • CREATE PROCEDURE

  • CREATE TABLE

  • CREATE VIEW

  • CREATE THE TRIGGER

  • CREATE THE TYPE

Tags: VMware

Similar Questions

  • Management of permissions for users on the network.

    Hello

    My question is General and related to xp and windows 7 as well.

    Can someone explain to me how to manage permissions for users on the network?  It's easy to do the job when I talk to local users, but I can't find a way to add computers to the dialog box object types. I have only options of theses: built-in security principals, users and groups. In the locations list, I see only my computer and cannot find how to add computers to all networks.

    Thank you

    For Windows XP, it makes a difference if "Simple file sharing" is enabled or disabled.  Simple file sharing is * always * activated if you have Windows XP Home Edition and it is the default setting in XP Pro.  Sharing files Simple enabled, * all * users who are connected to a network on your machine are forced to authenticate on the machine as the 'Guest' user - which means that you have no user authentication in Windows Home or XP Pro without disabling Simple file sharing.  This means that every network user has access only to files to the files which has permissions for the Guest user.

    If you have XP Pro and disable Simple file sharing, then you can ask users to authenticate on your local machine and give everyone access to its own set of file permissions.  If the user connects to a network computer that contains the same user name and password that the user is currently logged on the local computer, the authentication is automatic.

    "How to disable the file sharing simple and how to set permissions on a shared folder in Windows XP"

    <>http://support.Microsoft.com/kb/307874/en-us >

    HTH,

    JW

  • Parameters of the env for user oracle, during the installation of Oracle on linux

    Hello Oracle Experts;

    Basicallly my major is electrical and electronic

    I am very new to ORACLE/LINUX [LEARNING ORACLE DBA] technology.
    I have THREE questions... Please, help me understand oracle concepts.

    QUESTION 1:
    I get confused about 'parameter bash_profile' and it is contained
    I Googled, he said to set variables for user oracle env. Ok.
    Can someone explain clearly what is happening exactly when "setting bash_profile?


    MY SETTINGS BASH_PROFILE
    My bash_profile that contained the following:

    + # Oracle parameters +.
    TMP = / tmp; Export TMP
    TMPDIR = $TMP; export TMPDIR

    ORACLE_BASE = / u01/app/oracle; export ORACLE_BASE
    ORACLE_HOME=$ORACLE_BASE/product/10.2.0/Db_1; Export ORACLE_HOME
    ORACLE_SID = TSH1; export ORACLE_SID
    ORACLE_TERM = xterm; export ORACLE_TERM
    PATH = / usr/sbin: $PATH; export PATH
    PATH = $ORACLE_HOME/bin: $PATH; export PATH

    LD_LIBRARY_PATH = $ORACLE_HOME/lib: / lib: / usr/lib. export LD_LIBRARY_PATH
    CLASSPATH = $ORACLE_HOME/JRE: $ORACLE_HOME/jlib: $ORACLE_HOME/rdbms/jlib. Export CLASSPATH
    + #LD_ASSUME_KERNEL = 2.4.1; export LD_ASSUME_KERNEL +.

    + If [$USER = 'oracle']; then +.
    + If [$SHELL = "/ bin/ksh"]; then +.
    Pei 16384 ulimit
    ulimit-n 65536
    on the other
    ulimit-u 16384-n 65536
    FI
    FI

    QUESTION 2:

    Please note: this url says a lot of env variables

    http://www.idevelopment.info/data/Oracle/DBA_tips/UNIX/UNIX_4.shtml

    2. in my case, why following env variables * [LD_ LIBRARY_PATH, CLASS_PATH, PATH] * are missing?

    My pc showing that four env variable $ env |  grep EI EI TNS ORA

    ORACLE_SID = TSH1
    ORACLE_BASE = / u01/app/oracle
    ORACLE_TERM = xterm
    ORACLE_HOME=/U01/app/Oracle/product/10.2.0/Db_1

    QUESTION 3:

    * [LD_ LIBRARY_PATH, CLASS_PATH, PATH] *.

    * Are they [above mentioned variable env] needed (or) not necessary for oracle DB? *
    To enumerate env variables, why they are not displayed? (something wrong)?


    As a beginner, I expect some technical information to improve my knowledge...
    Thanks in advance;

    969352 wrote:
    should NOT serve as a substitute for Oracle installation manual.

    Specifically can provide you good document or links for 10g and 11g?

    Wire suggest me to follow the docs of oracle installation... Thank you

    =================================================
    Learn how to look for things in the documentation is good time invest in your career. To this end, you should drop everything you're doing and do the following:

    Go to [url tahiti.oracle.com] tahiti.oracle.com.

    Explore your product and version.

    TO BOOKMARK THIS SITE

    Spend a few minutes to familiarize yourself with what is available here. Take note special tabs "books" and "search". Under the tab 'books' (for 10.x) or the "Master books list" link (for 11.x), you will find the complete documentation library.

    Spend a few minutes just know what kind of documentation is available by simply browsing the titles under the "Books" tab

    Open the reference manual and spend a few minutes looking through the table of contents to familiarize yourself with what kind of information is available here.

    Do the same with the SQL reference manual.

    Do the same with the utilities manual.

    Do not read the above in depth. These are reference manuals. Knowing that just getting here is to be referenced. Ninety percent of the questions on this forum can be answered in less than 5 minutes just looking for one of the books above.

    Then, set a plan to dig deeper.
    - Read a chapter a day from the Concepts manual.
    -Take a look in your alert log. One of the first things listed at startup is the parms of initialized with default values. Find out about each of them (shown in your alerts log) in the reference manual.
    -Take a look at your sqlnet.ora, listener.ora and tnsnames.ora files. Go to the manual of network administrators and ask about what you see in these files.
    - When you have finished reading the guide to Concepts, do it again.

    Give a man a fish and he eats for a day. Teach him to fish and he eats for a lifetime.

    =================================

  • The user equivalence test failed for user 'oracle '.

    Hello

    I try to install the Clusterware Oracle 10g as part of my RAC installation.
    I have configured in RHEL 4 to 2 nodes (rac and rac2). But when I run the runcluvfy utility, I get the error below:

    [oracle@rac cluvfy] $./runcluvfy.sh stage pre - crsinst - rac n, rac2
    Conducting due diligence to install cluster services
    Audit accessibility of node...
    Check for accessibility of node is passed node "rac".
    Verify the equivalence of the user...
    The user equivalence test failed for user 'oracle '.
    The test failed on the nodes:
    RAC
    CAUTION:
    Equivalence of the user is not defined for nodes:
    RAC
    Audit will proceed to nodes:
    Rac2

    The problem is that with the first node (rac). The second node passes.
    SSH works fine. Don't know what the problem is!

    Thank you!

    Have you set up SSH for the equivalence of the user?
    Or
    Did you establish the user equivalence?
    If Yes... Please check...
    $ ssh hostname rac
    RAC
    $ ssh hostname rac2
    Rac2
    You should establish the equivalence before user...
    exec/usr/bin/ssh-agent $SHELL
    / usr/bin/SSH-Add

    If you do not configure ssh for the equivalence of the user
    http://www.Oracle.com/technology/pub/articles/smiley_rac10g_install.html
    Or
    read the SSH user equivalence is not defined on the remote nodes

  • Cannot add permissions for users Active Directory - the directory access error

    Hi all

    VCenter, connected as long as user with administrator privileges on the server, Active Directory running I am can be used to add permissions for domain accounts and just get errors:

    Right-click on the data center & gt; Add authorization & gt; Select read-only & gt; Add users and groups & gt; Select the domain & gt; (the list is NOT populated with users)

    Among users, enter my account of user AD & gt; Click on check names & gt; "The following names are not found: xxx".

    Enter the AD user account in the search box & gt; Click Search & gt; "A general system error occurred: directory access error.

    The only son I can find or KB articles relate to the modification of the period of Active Directory.  I did, but it did not help.

    http://communities.VMware.com/thread/14150

    http://KB.VMware.com/kb/1010094

    Any ideas why I can't delegate permissions? I do not think we have group policies that are resticting access, but I don't know which of the log files I should I seek to find the real problem.

    Thank you

    Kevin

    Windows Server 2003 R2 Standard Edition, vSphere Client 4.0.0 build 162856, vCenter Server 4.0.0 build 162856, ESXi 4.0.0 build 181792

    The problem that I had was related to what service vCenter services were running as.  No doubt during the installation (for some reason that escapes me now) I had configured the VMware VirtualCenter Server and VMware VirtualCenter Management Web services run under the local administrator account.  Change these so they ran as system Local solved the problem, and then I have a list of domain users and assign them permissions.

    Kevin

  • Permissions for users

    Hi, guys. I have a question about the permissions of the user. I use Open Hyperic. Is it possible to separate the rights of users? If I create the new web user, this user have the same authorization or almost the same (if I am wrong). But I need some users have rights to the view and nothing else, for example. In particular, it is important to close the access to the configuration of the web admin. As I understand it is possible through hqapi?

    Hello

    This is possible in Enterprise edition where the roles are introduced.

  • Permissions for user Workflow in web display Interaction

    Hello
    I am a newbe to vmware Orchestrator,
    I do a stream of work that require user intervention.
    Everythings works fine, including the security.group attribute in the interaction of the user associated with an OperatorGroup in Active Directory.
    So right now, I want to use the web view where a single user can start the workflow and can respond to another user (member of the opertorGroup) to the workflow.

    Here begins the problem:

    If the user of OperatorGroup use the vCO Client to answer, everything is ok,
    But if try to use web display (weboperator), I find the workflow running in the waiting state, but once chosen correctly I do not see the "Answer" button but only a simple string 'Description' and nothing else.
    In the vCO server log, I found this error:

    ERROR [WebObject] property does not exist 'displayName' object WorkflowToken%2Cdunes%3A%2F%2Fservice.dunes.ch%2FWorkflowToken%3Fid%3D%2791808080808080808080808080808080BC80808001333462110581b675f900f65%27%26dunesName%3D%27WorkflowToken%27

    ERROR [WebObject] property does not exist 'description' object WorkflowToken%2Cdunes%3A%2F%2Fservice.dunes.ch%2FWorkflowToken%3Fid%3D%2791808080808080808080808080808080BC80808001333462110581b675f900f65%27%26dunesName%3D%27WorkflowToken%27

    If I try with a member of the user of the 'Oct Admin Group', it works...
    I tried to assign all permissions (view, run, inspect, Admin, delete) in the workflow and also in the folder OperatorGroup root, but nothing has changed.

    If I run the workflow to a user of the OperatorGroup, the web pages display correctly. (the 'reply' button is indicated).

    It seems there's a problem of the opinion weboperator filter when the running workflow with different credentials of the user running workflow.

    Can someone help me?
    How can I solve this problem?

    Thanks to advice.

    Simone Anastasio

    Using vCO 4.2.1? If so, please try the following:

    http://KB.VMware.com/kb/2016770

  • No way of knowing itmes recently ordered for users oracle istore

    Hello

    Help me find the items recently ordered for oracle istore

    Hello

    Check this query, it should work...

    query:
    Select ol.ordered_item, oe_order_lines_all ol oh.ordered_date, oe_order_headers_all oh, hz_cust_accounts hz where ol.header_id = oh .header_id
    and hz.cust_account_id = oh .sold_to_org_id and hz.account_number = '12345' oh.creation_date desc order.

    Note: replace 12345 with your account number.

    Thank you
    LSP

  • Team CC. Need to change the permissions for users

    I installed CC team on multiple computers, up to 15 or more.

    I did install the package to do this.

    I used the default settings which, among other things, do not allow users to update the applications. The Admin can do it alone.

    Now, I am facing the problem that users who use CC on their private computer cannot update certain programs, because the Admin has to do this.

    Is there a simple way to change the permissions so that they can be updated?

    Sigurdur Armannsson salvation,

    Please follow this link to activate the feature updates in applications.

    http://helpx.Adobe.com/Creative-Suite/KB/disable-auto-updates-Application-Manager.html

    Kind regards

    Abhijit

  • Backup permissions for Active Directory users

    Hello

    is it possible (e.g. by vim - cmd), permission settings backup referring users to the AD?

    I have a domain controller which is a failure sometimes briefly and whenever that happens, forget my esxi / loses all permissions for users of the AD, while I again subsequently enter manually.

    Or does anyone have another tip for me, which could help prevent the loss of permission to users of the AD settings?

    Thanks in advance!

    I would investigate why your DC is falling, as it seems that causes the initial problems. as far as I know, once permissions have been applied, they should persists, but since your DC is down, I can't really say what is the expected result. You can take a look at newspapers to see if it takes DC are available to keep the roles, etc.

    In any case, if you need to quickly redeploy rules using vim - cmd, take a look at this blog post - http://www.virtuallyghetto.com/2011/02/automating-active-directory-user.html

    These permisisons must be stored under etc/vmware/hostd/authorization.xml, so you could technically simply this backup file and restore if necessary. You probably need to restart either process pass or the host so that the changes take effect

  • On my user account on my labtop when I click on a program, such as mozilla firefox, it happens 'windows cannot access the specified device, path or file. May not be the appropriate permissions for access you point. "Please help

    On my user account on my labtop when I click on a program, such as mozilla firefox, it happens 'windows cannot access the specified device, path or file. May not be the appropriate permissions for access you point. "This message appears for firefox, AVG, Windows live messenger, windows MediaPlayer etc.

    I can access my documents, Panel etc. and everything is there, but it won't let me not get access to the programs.

    Also when I go to click on itunes and open office it happens "this file has no program associated with it for performing this action. Create an association in the set associations Control Panel.

    Given that I was able to access control panel, I was able to create a new user and use it for now to send this message and all programs have worked on it and I was able to check for the presence of viruses on the Avg on this and everything was clear.

    Could you please explain whats wrong and tell me how to fix this please: D thanks

    Hello
     
    1. don't you make changes before the show?
    2. is the computer is joined to the domain controller?
     
    You can not start any application on a client computer that is joined to the domain controller. When you try to start this type of application, you receive an error message similar to the following:
    "Windows cannot access the specified device, path or file. You can not have the appropriate permissions to access the item.

    This can also occur if the user account is damaged. If the computer is not connected to a domain controller, try the following steps.
    1. connect to another user account and create a new user account to fix the damaged user account.
    For more information about creating a new user account and the fixing corrupt user account, visit this link: http://windows.microsoft.com/en-US/windows-vista/Fix-a-corrupted-user-profile
     
    Previous post the results in more detail, so that we can help you further.
     
    I hope this helps.
     
    Kind regards
    Syed
    Answers from Microsoft supports the engineer.

  • Lightroom CC "User permissions error" - cannot change the permissions for the folder Preferences

    I noticed that Lightroom was running slow so I thought it was time to take stock. (I was using Lightroom 5.7). Yesterday, I downloaded the last LR update, which is Lightroom CC [1067055]. I thought that Lightroom CC would replace 5 Lightroom but apparently they have downloaded as separate applications. When I tried to launch Lightroom CC I got an error message indicating "Lightroom has met permission issues. I followed the directions from this link met Lightroom user permissions problems. Bridge of Photoshop Lightroom crashes or hangs at the launch but it does not set itself (I did not take the final step which is - create a new user account). I was working off of Yosemite, so I hope that the error can be corrected if I updated my operating system. Today, I downloaded El Capitan and Lightroom CC will not always open - I get the same error. I went to manually update the read and write permissions for the folders listed, but some of them don't make changes. The preferences file gives me an error saying "the operation cannot be performed because you don't have the necessary authorization." I don't have the "Adobe" folder in this route Caches

    • /Users/ [user name] / Library/Caches/Adobe /.

    How can I solve this problem and get Lightroom CC to work?

    Screen Shot 2016-03-20 at 5.31.21 PM.pngScreen Shot 2016-03-20 at 5.44.38 PM.pngScreen Shot 2016-03-20 at 5.34.50 PM.pngScreen Shot 2016-03-20 at 5.42.53 PM.png

    @laurawielos,

    Try this:

    the Macintosh HD > users > [your user folder... click on 'Go' on the options bar at the top on the desktop (Menu bar) > then click on the 'option' key > mouse down to the selection of 'Library' that should appear > click on it to open the folder /Users/ [your user name] /Library/ ' "]

    You should now find the appropriate folders to change permissions. Just give your user name of the read/write permissions. I don't think you want to give everyone the read/write permission as some authors have claimed.

  • Mirage Management Server installation 5.1 - "unable to validate the permissions for this user account.

    I'm installing Horizon Mirage 5.1 server on a Windows Server 2012 R2 VM management. The SQL is located on a Server R2 VM with SQL 2012 2012. We have created a Mirage service account that has permissions of db_creator on the SQL Server. When we run the installation wizard we get the "unable to validate the permissions for this user account. Unable to connect to the database. The control server name, the name and server instance parameters"error message. We tried to make the local admin of the SQL server service account and the Mirage Mgmt server. We tried you identifying as service account and by running Setup in this way. Windows Firewall is disabled on both virtual machines. When we enter the SQL Server name and the instance use < servername > without an instance because it is an unnamed instance. Does anyone have other ideas? Cannot find much out there for KB articles. I'll open evidence of the support if it takes too long to understand.

    The service account, we created had a "database default" set in SQL. We chose the database and he continued as planned.

  • ORA-01034 for users other than the oracle

    Hello.

    I'm having a problem trying to connect via SQLPLUS with users that aren't, user oracle t. Instance of database is mounted, open and working fine, the listener is also running. I undersigned, m able to connect without any problem with the user oracle as follows:


    [oracle@LX-TSC2 admin] $ sqlplus metro_ctl/metro_ctl

    SQL * more: Release 10.2.0.4.0 - Production on sat Sep 26 08:30:44 2013

    Copyright (c) 1982, 2007, Oracle.  All rights reserved.

    Connected to:

    Oracle Database 10g Release 10.2.0.4.0 - Production

    SQL >

    But if I try with another user of linux, I get errors:


    [metro_ctl@LX-TSC2 ~] $ sqlplus metro_ctl/metro_ctl

    SQL * more: Release 10.2.0.4.0 - Production on sat Sep 26 08:31:58 2013

    Copyright (c) 1982, 2007, Oracle.  All rights reserved.

    ERROR:

    ORA-01034: ORACLE not available

    ORA-27101: shared memory realm does not exist

    Linux error: 2: no such file or directory

    ORACLE_SID, ORACLE_HOME, path are already defined as user metro_ctl environment variable:

    [metro_ctl@LX-TSC2 ~] $ echo $ORACLE_SID

    TSC

    [metro_ctl@LX-TSC2 ~] $ echo $ORACLE_HOME

    /Oracle/product/10.2.0/Db_1

    [metro_ctl@LX-TSC2 ~] $ echo $PATH

    /home/metro_ctl/fuentes/java/classes:/home/metro_ctl/fuentes/java/lib/classes12.zip:/home/metro_ctl/fuentes/java/bcprov-jdk14-128.jar:/usr/java/j2sdk1.4.1_01:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/metro_ctl/bin:.:/ Oracle/product/10.2.0/Db_1:/Oracle/product/10.2.0/Db_1/bin:/Oracle/product/10.2.0/Db_1/lib:/Home/metro_ctl/pipe:/Home/metro_ctl/bin

    I am able to connect seamlessly with the user metro_ctl if I pointed out that SID to the sqlplus:

    [metro_ctl@LX-TSC2 ~] $ sqlplus metro_ctl/metro_ctl@TSC

    SQL * more: Release 10.2.0.4.0 - Production on sat Sep 26 08:34:42 2013

    Copyright (c) 1982, 2007, Oracle.  All rights reserved.

    Connected to:

    Oracle Database 10g Release 10.2.0.4.0 - Production

    SQL >

    But I n, t want specified SID since he is already specified in the ORACLE_SID environment variable, I want to open a session by simply using "sqlplus metro_ctl/xxx".

    In case of need, I paste the following text:

    [oracle@LX-TSC2 admin] $ ps - ef | grep pmo

    Oracle 24463 1 0 06:32?        00:00:00 ora_pmon_TSC

    [oracle@LX-TSC2 admin] $ cat tnsnames.ora

    tnsnames.ora # Network Configuration file: /oracle/product/10.2.0/db_1/network/admin/tnsnames.ora

    # Generated by Oracle configuration tools.

    TSC =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP) (HOST = LX-TSC2)(PORT = 1521))

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = TSC)

    )

    )

    [oracle@LX-TSC2 admin] $ cat listener.ora

    SID_LIST_LISTENER =

    (SID_LIST =

    (SID_DESC =

    (SID_NAME = TSC)

    (ORACLE_HOME = oracle/product/10.2.0/db_1)

    (= Extproc PROGRAM)

    )

    )

    LISTENER =

    (DESCRIPTION_LIST =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP) (HOST = LX-TSC2)(PORT = 1521))

    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC0))

    )

    )

    [metro_ctl@LX-TSC2 ~] $ tnsping TSC

    AMT Ping utility for Linux: release 10.2.0.4.0 - Production on 26 October 2013 08:37:56

    Copyright (c) 1997, 2007, Oracle.  All rights reserved.

    Use settings files:

    TNSNAMES adapter used to resolve the alias

    Try to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = LX-TSC2)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = TSC)))

    OK (0 msec)

    Any help will be be appreciated.

    Hello.

    I finally solved my problem. I would like to thank to all the people who tried to help me with my problem. I am now able to use sqlplus without using the SID at the end:

    metro_ctl@LX-TSC2$ sqlplus metro_ctl/metro_ctl

    SQL * more: Release 10.2.0.4.0 - Production on sat Sep 26 13:41:51 2013

    Copyright (c) 1982, 2007, Oracle.  All rights reserved.

    Connected to:

    Oracle Database 10g Release 10.2.0.4.0 - Production

    SQL > select * from cat where rownum<>

    TABLE_NAME TABLE_TYPE

    ------------------------------ -----------

    LIFE

    I resolved to do the following steps:

    1)Log on as root and change permission.
    bash-3.00$ su Password:
    # umask 022
    # cd $ORACLE_HOME
    # chmod 755 *
    # cd $ORACLE_BASE/admin/$ORACLE_SID
    # chmod 755 *
    # cd $ORACLE_HOME/bin
    # chmod 6751 oracle
    # exit
    
  • Trying to assign permissions for the Admin user on the folder root

    I am trying to add a domain user on the permissions of the folder for the folder root in vCenter with administrative permissions.  I can get it to assign permissions for folders under the root, but not at the top of the tree.  See code below.

    #Create a VIAccount object can be used with New-VIPermission, Get-VIPermission, PowerCLI etc.

    Function New-VIAccount ($principal) {}

    $flags = '

    http://System.Reflection.BindingFlags: NonPublic - bor

    http://System.Reflection.BindingFlags: Public - bor

    http://System.Reflection.BindingFlags: DeclaredOnly - bor

    http://System.Reflection.BindingFlags: Instance

    $method = $defaultviserver. GetType(). GetMethods ($flags) |

    where {$_.} Name - eq "VMware.VimAutomation.Types.VIObjectCore.get_Client"}

    $client = $method. Invoke ($global: DefaultVIServer, $null)

    Write-Output"

    (New-Object VMware.VimAutomation.Client20.PermissionManagement.VCUserAccountImpl ')

    (- ArgumentList $principal, "", $client)

    }

    $svcaccount = $domain + "\" + $username

    $account = new-VIAccount "$svcaccount".

    #(Get-dossier-dossier nom) | New-VIPermission-role Admin - main $account - spread: $TRUE # this adds the user to a folder called folder without any problem.

    (Get-file-name of the centres of data-Id file-group-d1) | New-VIPermission-role Admin - main $account - spread: $TRUE # when I try to apply to the root folder I get the following error:

    New-VIPermission: 2009-12-24 14:19:30 new-VIPermission 9C9AB6A7-E395-42D1-B944-516E1BBBCEF2 reference object not set to an instance of an object.

    To... vCenterSettings.ps1:93 tank: 70 + (Get-file-name of centres of data-Id file-group-d1). New-VIPermission < < < < - role Admin-main $account - spread: $TRUE

    I was able to reproduce the problem, which seems to be another bug for the cmdlet New-VIPermission in PowerCLI 4u1 indeed.

    As a workaround, you can call the SetEntityPermissions method directly like that

    $domain = 
    $username = 
    $svcaccount = $domain + "\" + $username
    
    $folder = Get-Folder -Name "Datacenters"
    $authMgr = Get-View AuthorizationManager
    $perm = New-Object VMware.Vim.Permission
    $perm.principal = $svcaccount
    $perm.propagate = $true
    $perm.roleid = ($authMgr.RoleList | where{$_.Name -eq "Admin"}).RoleId
    $authMgr.SetEntityPermissions(($folder | Get-View).MoRef, $perm)
    

Maybe you are looking for