BladeSystem - General
1825747 Members
2379 Online
109687 Solutions
New Discussion

PowerShell Cmdlets Add-HPEOALDAPGroup and Add-HPEOALDAPPrivilege

 
SOLVED
Go to solution
CarlosChen
Member

PowerShell Cmdlets Add-HPEOALDAPGroup and Add-HPEOALDAPPrivilege

Hi All,

I'm currently working on check the LDAPGroup on the OA's. However, seems the cmdlet "Add-HPEOALDAPGroup" doesn't include the privilege level parameter, neither the Add-HPEOALDAPPrivilege.

By default the added group is set as "User" and I wanted to make this into "Operator". 

Is there a way to do it with HPE OA PowerShell Cmdlets?

Thank you

7 REPLIES 7
support_s
System Recommended

Query: PowerShell Cmdlets Add-HPEOALDAPGroup and Add-HPEOALDAPPrivilege

System recommended content:

1. Scripting Tools for Windows PowerShell User Guide: iLO Cmdlets v4.0.0.0

2. Scripting Tools for Windows PowerShell Release Notes: OA Cmdlets v2.0

 

Please click on "Thumbs Up/Kudo" icon to give a "Kudo".

 

Thank you for being a HPE valuable community member.


Accept or Kudo

CarlosChen
Member

Re: Query: PowerShell Cmdlets Add-HPEOALDAPGroup and Add-HPEOALDAPPrivilege

The 2nd link is not working

Vinky_99
Esteemed Contributor

Re: Query: PowerShell Cmdlets Add-HPEOALDAPGroup and Add-HPEOALDAPPrivilege

@CarlosChen 

Good day! 

Both links working for me. You can try load it again. 

These are my opinions so use it at your own risk.
Gwendolynland
Visitor

Re: PowerShell Cmdlets Add-HPEOALDAPGroup and Add-HPEOALDAPPrivilege

 the HPE OneView PowerShell library provides cmdlets for managing HPE OneView infrastructure, including HPE OneView Appliances (OAs). However, specific details about cmdlet functionality and parameters might have changed since then.

Regarding your question about changing the privilege level when adding an LDAP group using the "Add-HPEOALDAPGroup" cmdlet, it's important to note that cmdlet parameters can vary depending on the version of HPE OneView and the PowerShell module you're using. 

As of my last update, I don't have information on a direct cmdlet parameter to set the privilege level when adding an LDAP group using the "Add-HPEOALDAPGroup" cmdlet. The privilege level might be determined by default settings or post-configuration steps.

Here's what you might consider doing:

1. **Check Documentation**: Refer to the official documentation for the specific version of HPE OneView and the PowerShell module you're using. The documentation should provide information about available cmdlets, their parameters, and their usage.

2. **Explore Additional Cmdlets**: There might be other cmdlets within the HPE OneView PowerShell library that allow you to modify the privilege level of LDAP groups after they have been added. Look for cmdlets related to modifying group settings or privileges.

3. **Contact HPE Support**: If you're unable to find a direct solution using the available cmdlets or documentation, consider reaching out to HPE support. They can provide guidance on achieving your desired configuration using the available tools and resources.

4. **Scripting Workaround**: If the HPE OneView PowerShell library doesn't provide a direct cmdlet parameter, you might need to use a combination of cmdlets and scripting to achieve the desired result. This could involve adding the group with default settings and then using additional cmdlets or API calls to modify the privilege level.

Keep in mind that my information might be outdated, and there might have been updates or changes to the HPE OneView PowerShell cmdlets since then. I recommend consulting the most current resources, including HPE's official documentation, support channels, and online communities, for the latest information and solutions.

CarlosChen
Member

Re: Query: PowerShell Cmdlets Add-HPEOALDAPGroup and Add-HPEOALDAPPrivilege

i dont know why. But its always empty.

Captura de pantalla 2023-08-16 103318.png

CarlosChen
Member
Solution

Re: PowerShell Cmdlets Add-HPEOALDAPGroup and Add-HPEOALDAPPrivilege

SOLVED!

Im using the version 2.0 from OA PowerShell Cmdlets.

The command its not so user friendly, i've been searching for a long time.

1.  Add the LDAPGroup name 

    Add-HPEOALDAPGroup -Connection $connection -Group <LDAPGroup_name>

2. Modify the PriviledLevel with the following cmdlet and using -Access parameter to assign "Administrator", "Operator" or "User"

    Set-HPEOALDAPSetting -Connection $connection -Group <LDAPGroup_name> -Access <Administrator, Operator or User>

Sunitha_Mod
Honored Contributor

Re: PowerShell Cmdlets Add-HPEOALDAPGroup and Add-HPEOALDAPPrivilege

Hello @CarlosChen,

That's awesome! 

We are glad to know the problem has been resolved and we appreciate you for keeping us updated.