diff --git a/BoxCLI/BoxCLI.csproj b/BoxCLI/BoxCLI.csproj index 3ef79a35..f57de9ce 100644 --- a/BoxCLI/BoxCLI.csproj +++ b/BoxCLI/BoxCLI.csproj @@ -7,7 +7,7 @@ BoxCLI - + diff --git a/BoxCLI/CommandUtilities/CsvModels/BoxUserMap.cs b/BoxCLI/CommandUtilities/CsvModels/BoxUserMap.cs index f7ef9c6c..c63f2549 100644 --- a/BoxCLI/CommandUtilities/CsvModels/BoxUserMap.cs +++ b/BoxCLI/CommandUtilities/CsvModels/BoxUserMap.cs @@ -31,7 +31,7 @@ public BoxUserMap() Map(m => m.IsExemptFromDeviceLimits); Map(m => m.IsExemptFromLoginVerification); Map(m => m.CanSeeManagedUsers); - // Map(m => m.TrackingCodes).TypeConverter(); + Map(m => m.TrackingCodes); } } @@ -44,17 +44,4 @@ public BoxUserEnterpriseMap() Map(m => m.Type).Ignore(); } } - - // public class TrackingCodesConverter : DefaultTypeConverter - // { - // public override string ConvertToString(TypeConverterOptions options, object value) - // { - // var stringVal = (string[])value; - // if(stringVal == null) - // { - // stringVal = new string[0]; - // } - // return string.Join("\n", stringVal); - // } - // } } \ No newline at end of file diff --git a/BoxCLI/CommandUtilities/CsvModels/BoxUserRequestMap.cs b/BoxCLI/CommandUtilities/CsvModels/BoxUserRequestMap.cs index c591a91d..52baa8b9 100644 --- a/BoxCLI/CommandUtilities/CsvModels/BoxUserRequestMap.cs +++ b/BoxCLI/CommandUtilities/CsvModels/BoxUserRequestMap.cs @@ -7,7 +7,6 @@ public sealed class BoxUserRequestMap : CsvClassMap { public BoxUserRequestMap() { - Map(m => m.Id); Map(m => m.Login); Map(m => m.Name); Map(m => m.IsPlatformAccessOnly); diff --git a/BoxCLI/Commands/UserSubCommands/UserSubCommandBase.cs b/BoxCLI/Commands/UserSubCommands/UserSubCommandBase.cs index cbb8c480..9a635410 100644 --- a/BoxCLI/Commands/UserSubCommands/UserSubCommandBase.cs +++ b/BoxCLI/Commands/UserSubCommands/UserSubCommandBase.cs @@ -45,7 +45,7 @@ public UserSubCommandBase(IBoxPlatformServiceBuilder boxPlatformBuilder, IBoxHom "max_upload_size", "space_amount", "space_used", - // "tracking_codes", + "tracking_codes", "is_platform_access_only", "is_sync_enabled", "is_exempt_from_login_verification", @@ -187,7 +187,7 @@ protected BoxUserRequest CreateUserRequest(string name = "", string userId = "", if (isExemptFromLoginVerificaton) { userRequest.IsExemptFromLoginVerification = true; } if (notExemptFromLoginVerification) { userRequest.IsExemptFromLoginVerification = false; } if (isPasswordResetRequired) { userRequest.IsPasswordResetRequired = true; } - + return userRequest; } protected async Task UpdateUsersFromFile(string path,