Table of Contents

Class User.UpdateUserBuilder

Namespace
Smartsheet.Api.Models
Assembly
smartsheet-csharp-sdk.dll

A convenience class for making a User object with the appropriate fields for updating a user.

public class User.UpdateUserBuilder
Inheritance
User.UpdateUserBuilder
Inherited Members

Constructors

UpdateUserBuilder(long?, bool?, bool?)

User object containing the required attributes:

public UpdateUserBuilder(long? id, bool? admin, bool? licensedSheetCreator)

Parameters

id long?

the user id

admin bool?

admin (required)

licensedSheetCreator bool?

licensedSheetCreator (required)

Methods

Build()

Builds the User object using the required fields.

public User Build()

Returns

User

the user

GetAdmin()

Gets the Admin.

public bool? GetAdmin()

Returns

bool?

the Admin

GetFirstName()

Gets the user's first name.

public string GetFirstName()

Returns

string

the firstName

GetIsInternal()

Gets the is internal.

public bool? GetIsInternal()

Returns

bool?

the is internal

GetLastName()

Gets the user's last name.

public string GetLastName()

Returns

string

the lastName

GetLicensedSheetCreator()

Gets the licensed sheet creator.

public bool? GetLicensedSheetCreator()

Returns

bool?

the licensed sheet creator

GetPlanId()

Gets the plan ID.

public long? GetPlanId()

Returns

long?

the plan ID

GetProvisionalExpirationDate()

Gets expiration date of the provisional seat type of the user.

public DateTime? GetProvisionalExpirationDate()

Returns

DateTime?

the provisional expiration date

GetResourceViewer()

Gets the Flag indicating whether the user is a resource viewer (can access resource views).

public bool? GetResourceViewer()

Returns

bool?

the resourceViewer

GetSeatType()

Gets the seat type.

public SeatType? GetSeatType()

Returns

SeatType?

the seat type

GetSeatTypeLastChangedAt()

Gets the seat type last changed at.

public DateTime? GetSeatTypeLastChangedAt()

Returns

DateTime?

the seat type last changed at

SetAdmin(bool?)

Sets the Admin flag which allows managing Users and accounts.

public User.UpdateUserBuilder SetAdmin(bool? admin)

Parameters

admin bool?

the Admin

Returns

User.UpdateUserBuilder

the UpdateUserBuilder

SetFirstName(string)

Sets the user's first name.

public User.UpdateUserBuilder SetFirstName(string firstName)

Parameters

firstName string

the firstName

Returns

User.UpdateUserBuilder

the UpdateUserBuilder

SetIsInternal(bool?)

Sets the is internal.

public User.UpdateUserBuilder SetIsInternal(bool? isInternal)

Parameters

isInternal bool?

the is internal

Returns

User.UpdateUserBuilder

the UpdateUserBuilder

SetLastName(string)

Sets the user's last name.

public User.UpdateUserBuilder SetLastName(string lastName)

Parameters

lastName string

the lastName

Returns

User.UpdateUserBuilder

the UpdateUserBuilder

SetLicensedSheetCreator(bool?)

Sets the licensed sheet creator flag that allows creating and owning Sheets.

public User.UpdateUserBuilder SetLicensedSheetCreator(bool? licensedSheetCreator)

Parameters

licensedSheetCreator bool?

the licensed sheet creator

Returns

User.UpdateUserBuilder

the UpdateUserBuilder

SetPlanId(long?)

Sets the plan ID.

public User.UpdateUserBuilder SetPlanId(long? planId)

Parameters

planId long?

the plan ID

Returns

User.UpdateUserBuilder

the UpdateUserBuilder

SetProvisionalExpirationDate(DateTime?)

Sets the expiration date of the provisional seat type of the user.

public User.UpdateUserBuilder SetProvisionalExpirationDate(DateTime? provisionalExpirationDate)

Parameters

provisionalExpirationDate DateTime?

the provisional expiration date

Returns

User.UpdateUserBuilder

the UpdateUserBuilder

SetResourceViewer(bool?)

Sets the Flag indicating whether the user is a resource viewer (can access resource views)

public User.UpdateUserBuilder SetResourceViewer(bool? resourceViewer)

Parameters

resourceViewer bool?

the resourceViewer

Returns

User.UpdateUserBuilder

the UpdateUserBuilder

SetSeatType(SeatType?)

Sets the seat type.

public User.UpdateUserBuilder SetSeatType(SeatType? seatType)

Parameters

seatType SeatType?

the seat type

Returns

User.UpdateUserBuilder

the UpdateUserBuilder

SetSeatTypeLastChangedAt(DateTime?)

Sets the seat type last changed at.

public User.UpdateUserBuilder SetSeatTypeLastChangedAt(DateTime? seatTypeLastChangedAt)

Parameters

seatTypeLastChangedAt DateTime?

the seat type last changed at

Returns

User.UpdateUserBuilder

the UpdateUserBuilder