SpanningCloudApps / SB365-Powershell

Spanning Backup for Office 365 REST API PowerShell Module
https://spanning.com
Apache License 2.0
10 stars 5 forks source link

SB365-Powershell command is not giving output as stated in usage examples. #59

Closed ssuryakant20 closed 2 years ago

ssuryakant20 commented 2 years ago

As mentioned below, this particular command is not giving output as stated below, instead it is giving output in the format mentioned in "Actual Output"

Enable-SpanningUsersFromCSVAdvanced -Path "C:\Test\Users.csv" -UpnColumn 1 The result should be displayed as follows:

Expected Output: userPrincipalName licensed


willa@doghousetoys.com True kobe@doghousetoys.com True jazzy@doghousetoys.com True cheyenne@doghousetoys.com True

Actual Output: userPrincipalNames licensed


{willa@doghousetoys.com, kobe@doghousetoys.com, jazzy@doghousetoys.com, cheyenne@doghousetoys.com...} True

SPMatthewMcD commented 2 years ago

True, I'll have to update the documentation. The Enable-SpanningUsersFromCSVAdvanced cmdlet was updated to use the preferred approach to bulk licensing Enable-SpanningUserList. I recommend that you use that cmdlet instead.

The alternative is to pass one user at a time and get the individual success/failure for each user.

SPMatthewMcD commented 2 years ago

Documentation updated, thank you.