New-VCFServiceUser

Synopsis

Connects to the specified SDDC Manager and adds a new service user.

Syntax

New-VCFServiceUser -user <String> -role <string>

Description

The New-VCFServiceUser cmdlet connects to the specified SDDC Manager and adds a new service user.

Examples

Example 1

New-VCFServiceUser -user svc-user@rainpole.io -role ADMIN

This example shows how to create a user with ADMIN role

Parameters

-user

Type: string
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None

-role

Type: string
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Supported Value: ADMIN, OPERATOR

Notes

Get-VCFUser | Where-object {$_.name -eq 'svc-user@rainpole.io'} | Select-Object -ExpandProperty apikey