Table of Contents

Class AdminUserAttributes

Namespace
Supabase.Gotrue
Assembly
Supabase.Gotrue.dll
public class AdminUserAttributes : UserAttributes
Inheritance
AdminUserAttributes
Inherited Members

Properties

AppMetadata

A custom data object for app_metadata that. Can be any JSON serializable data. Only a service role can modify

Note: GoTrue does not yest support creating a user with app metadata (see: https://github.com/supabase/gotrue-js/blob/d7b334a4283027c65814aa81715ffead262f0bfa/test/GoTrueApi.test.ts#L45)

[JsonProperty("app_metadata")]
public Dictionary<string, object> AppMetadata { get; set; }

Property Value

Dictionary<string, object>

BanDuration

Determines how long a user is banned for.

This property is ignored when creating a user. If you want to create a user banned, first create the user then update it sending this property.

The format for the ban duration follows a strict sequence of decimal numbers with a unit suffix. Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".

For example, some possible durations include: '300ms', '2h45m', '1200s'.

Setting the ban duration to "none" lifts the ban on the user.

Only a service role can modify.

[JsonProperty("ban_duration")]
public string? BanDuration { get; set; }

Property Value

string

EmailConfirm

Sets if a user has confirmed their email address. Only a service role can modify

[JsonProperty("email_confirm")]
public bool? EmailConfirm { get; set; }

Property Value

bool?

PhoneConfirm

Sets if a user has confirmed their phone number. Only a service role can modify

[JsonProperty("phone_confirm")]
public bool? PhoneConfirm { get; set; }

Property Value

bool?

UserMetadata

A custom data object for user_metadata. Can be any JSON serializable data. Only a service role can modify.

[JsonProperty("user_metadata")]
public Dictionary<string, object> UserMetadata { get; set; }

Property Value

Dictionary<string, object>