Wed. Jun 8th, 2022
Function Create_PermissionLevel(){
    $Error = $null
    Write-Host "Creating Permission Level" -ForegroundColor Yellow
    try{
       Add-PnPRoleDefinition -RoleName "Custom Manager" -Clone "Manager" -Include AddAndCustomizePages, ManageWeb, ApproveItems -Description "Custom permission level for Managers" -ErrorAction SilentlyContinue
   
       if($Error -ne $null){
            Write-Host "Check -" $_.Exception.Message -ForegroundColor Red
        }
        Write-host "New Permission Level created" -ForegroundColor Green
    }catch{
        Write-Host "Error -" $_.Exception.Message -ForegroundColor Red
    }
}

This website uses cookies. By continuing to use this site, you accept our use of cookies.