<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: HPE SimpliVity PowerShell Module Rights in HPE SimpliVity</title>
    <link>https://community.hpe.com/t5/hpe-simplivity/hpe-simplivity-powershell-module-rights/m-p/7199593#M4404</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for your reply it's exactly what was missing for me.&lt;/P&gt;&lt;P&gt;I'll explain the steps involved in authorizing a vCenter user to perform the&amp;nbsp;&lt;SPAN&gt;PowerShell command "Get-SVTBackup" :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1. You need&amp;nbsp;a vsphere.local group or an Active Directory group because we can only add rights on OmniStack to groups and not users&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2.&amp;nbsp;Map the group to the OmniStack "BackupUser" role (there are only 2 Omnistack roles admin and Backup)&amp;nbsp; in Powershell :&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Connect-SVT -OVC 1X.X.X.X -Credential Get-Credentials
$token = Get-HPESvtHostOAuthToken -Credential Get-Credentials -Hostname X.X.X.X
Set-HPESvtRbacRoleAssignment -Group VSPHERE.LOCAL\group -Role BackupUser -HostOAuthToken $token&lt;/LI-CODE&gt;&lt;P&gt;3. add rights to the group created in vCenter. There are many "VMware privileges required for backup and restore operations".&amp;nbsp;But after a few tests, I found out that you need only 1 right to add to run the Get-SVTBackup command, you only need create snapshot right.&lt;/P&gt;&lt;P&gt;And my script works perfectly with a user who has restricted rights !!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 27 Oct 2023 13:19:18 GMT</pubDate>
    <dc:creator>Q_M13</dc:creator>
    <dc:date>2023-10-27T13:19:18Z</dc:date>
    <item>
      <title>HPE SimpliVity PowerShell Module Rights</title>
      <link>https://community.hpe.com/t5/hpe-simplivity/hpe-simplivity-powershell-module-rights/m-p/7197596#M4350</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I was doing some powershell scripting on my symplivity infrastructure and realized that some commands didn't need the same rights level.&lt;BR /&gt;I use a read-only account on my vcenter and I can connect to my OVC, run certain commands like Get-SVThost and Get-SVTvm but not Get-SVTBackup!!!&lt;BR /&gt;I get an error message :&lt;BR /&gt;PS C:\Scripts&amp;gt; Get-SVTbackup -BackupState FAILED -CreatedAfter $LastWeek&lt;BR /&gt;Runtime error: Not in an HPE SimpliVity role that is authorized to perform the requested action or view the requested information&lt;/P&gt;&lt;P&gt;when I play it with the admininistrator@vsphere.local account it works.&lt;/P&gt;&lt;P&gt;Have you any idea of the rights I need to add to run that command ????&lt;/P&gt;&lt;P&gt;Thanks all&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2023 15:07:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-simplivity/hpe-simplivity-powershell-module-rights/m-p/7197596#M4350</guid>
      <dc:creator>Q_M13</dc:creator>
      <dc:date>2023-09-29T15:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: HPE SimpliVity PowerShell Module Rights</title>
      <link>https://community.hpe.com/t5/hpe-simplivity/hpe-simplivity-powershell-module-rights/m-p/7197938#M4355</link>
      <description>&lt;P&gt;Hi Q_M13,&lt;/P&gt;&lt;P&gt;I see you faced permission issues while running the PowerShell command "Get-SVTBackup".&lt;/P&gt;&lt;P&gt;To run any queries that fetch backup-related data, an account with read-only access will not suffice.&lt;/P&gt;&lt;P&gt;Please refer to the below document (page no.34) to get the list of privileges that are required to perform backup and restore operations.&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.hpe.com/hpesc/public/docDisplay?docLocale=en_US&amp;amp;docId=a00131388en_us" target="_blank"&gt;https://support.hpe.com/hpesc/public/docDisplay?docLocale=en_US&amp;amp;docId=a00131388en_us&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Post adding these privileges to the role assigned to the read-only user, re-run the above PowerShell command "Get-SVTBackup".&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Sanika.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 14:49:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-simplivity/hpe-simplivity-powershell-module-rights/m-p/7197938#M4355</guid>
      <dc:creator>Sanika</dc:creator>
      <dc:date>2023-10-04T14:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: HPE SimpliVity PowerShell Module Rights</title>
      <link>https://community.hpe.com/t5/hpe-simplivity/hpe-simplivity-powershell-module-rights/m-p/7198310#M4372</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.hpe.com/t5/user/viewprofilepage/user-id/2128618"&gt;@Q_M13&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Let us know if you were able to resolve the issue.&lt;/P&gt;
&lt;P&gt;If you have no further query and you are satisfied with the answer then kindly mark the topic as Solved so that it is helpful for all community members.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 05:36:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-simplivity/hpe-simplivity-powershell-module-rights/m-p/7198310#M4372</guid>
      <dc:creator>Sunitha_Mod</dc:creator>
      <dc:date>2023-10-10T05:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: HPE SimpliVity PowerShell Module Rights</title>
      <link>https://community.hpe.com/t5/hpe-simplivity/hpe-simplivity-powershell-module-rights/m-p/7199593#M4404</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for your reply it's exactly what was missing for me.&lt;/P&gt;&lt;P&gt;I'll explain the steps involved in authorizing a vCenter user to perform the&amp;nbsp;&lt;SPAN&gt;PowerShell command "Get-SVTBackup" :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1. You need&amp;nbsp;a vsphere.local group or an Active Directory group because we can only add rights on OmniStack to groups and not users&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2.&amp;nbsp;Map the group to the OmniStack "BackupUser" role (there are only 2 Omnistack roles admin and Backup)&amp;nbsp; in Powershell :&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Connect-SVT -OVC 1X.X.X.X -Credential Get-Credentials
$token = Get-HPESvtHostOAuthToken -Credential Get-Credentials -Hostname X.X.X.X
Set-HPESvtRbacRoleAssignment -Group VSPHERE.LOCAL\group -Role BackupUser -HostOAuthToken $token&lt;/LI-CODE&gt;&lt;P&gt;3. add rights to the group created in vCenter. There are many "VMware privileges required for backup and restore operations".&amp;nbsp;But after a few tests, I found out that you need only 1 right to add to run the Get-SVTBackup command, you only need create snapshot right.&lt;/P&gt;&lt;P&gt;And my script works perfectly with a user who has restricted rights !!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2023 13:19:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-simplivity/hpe-simplivity-powershell-module-rights/m-p/7199593#M4404</guid>
      <dc:creator>Q_M13</dc:creator>
      <dc:date>2023-10-27T13:19:18Z</dc:date>
    </item>
  </channel>
</rss>

