Functions/Public/Get-InfluxDbPrivilege.ps1

1
2
3
4
5
6
7
8
9
10
11
function Get-InfluxDbPrivilege {
    [CmdletBinding()]
    param(
        [Parameter(Mandatory)]
        [ValidateNotNullOrEmpty()]
        [string]
        $User
    )
    
    Invoke-InfluxDbApi -Query "SHOW GRANTS FOR $User"
}