microsoft / ReportingServicesTools

Reporting Services Powershell Tools
MIT License
458 stars 213 forks source link

#351 fixed New-RsRestCacheRefreshPlan for custom credentials #352

Closed suyogkw closed 3 years ago

suyogkw commented 3 years ago

Fixes # 351

Changes proposed in this pull request: conditional switch for credentials parameter based on user provided custom credentials

How to test this code: run New-RsRestCacheRefreshPlan with custom credential parameter, and without it. if default logged in user doesn't have access, it shouldn't be able to create new cache refresh plan, but custom credentials user should be able to create it.

Has been tested on (remove any that don't apply):