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

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

GetResourceViewer()

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

public bool? GetResourceViewer()

Returns

bool?

the resourceViewer

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

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

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