identity-management/Set-IDMUserAuthGrants.ps1
function Set-IDMUserAuthGrants { Param( [Parameter(Mandatory=$true)] [string] $UiIdentityID, [Parameter(Mandatory=$true)] [string] $Body, [Parameter(Mandatory=$false)] [string] $EdgeRCFile = '~\.edgerc', [Parameter(Mandatory=$false)] [string] $Section = 'default', [Parameter(Mandatory=$false)] [string] $AccountSwitchKey ) $Path = "/identity-management/v2/user-admin/ui-identities/$UiIdentityID/auth-grants?accountSwitchKey=$AccountSwitchKey" try { $Result = Invoke-AkamaiRestMethod -Method PUT -Path $Path -Body $Body -EdgeRCFile $EdgeRCFile -Section $Section return $Result } catch { throw $_.Exception } } |