Class UserSummary
The summary of information about the database user. It includes details such as user type, account status, last login time, user creation time, authentication type, user profile, and time and date of the last password change and the date and time of the expiration of the password. It also contains the user category derived from these user details, as well as granted privileges.
Inherited Members
Namespace: Oci.DatasafeService.Models
Assembly: OCI.DotNetSDK.Datasafe.dll
Syntax
public class UserSummary
Properties
AccountStatus
Declaration
[JsonProperty(PropertyName = "accountStatus")]
[JsonConverter(typeof(ResponseEnumConverter))]
public UserSummary.AccountStatusEnum? AccountStatus { get; set; }
Property Value
| Type | Description |
|---|---|
| UserSummary.AccountStatusEnum? | The status of the user account. |
AdminRoles
Declaration
[JsonProperty(PropertyName = "adminRoles", ItemConverterType = typeof(ResponseEnumConverter))]
public List<UserSummary.AdminRolesEnum> AdminRoles { get; set; }
Property Value
| Type | Description |
|---|---|
| List<UserSummary.AdminRolesEnum> | The admin roles granted to the user. |
AreAllSchemasAccessible
Declaration
[JsonProperty(PropertyName = "areAllSchemasAccessible")]
public bool? AreAllSchemasAccessible { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? | Indicates whether the user has access to all the schemas. |
AuthenticationType
Declaration
[JsonProperty(PropertyName = "authenticationType")]
[JsonConverter(typeof(ResponseEnumConverter))]
public UserSummary.AuthenticationTypeEnum? AuthenticationType { get; set; }
Property Value
| Type | Description |
|---|---|
| UserSummary.AuthenticationTypeEnum? | The user authentication method. |
Key
Declaration
[Required(ErrorMessage = "Key is required.")]
[JsonProperty(PropertyName = "key")]
public string Key { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The unique user key. This is a system-generated identifier. Use ListUsers to get the user key for a user. |
Remarks
Required
SchemaList
Declaration
[JsonProperty(PropertyName = "schemaList")]
public List<string> SchemaList { get; set; }
Property Value
| Type | Description |
|---|---|
| List<string> | The list of database schemas current user can access. |
TargetId
Declaration
[Required(ErrorMessage = "TargetId is required.")]
[JsonProperty(PropertyName = "targetId")]
public string TargetId { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The OCID of the target database. |
Remarks
Required
TimeLastLogin
Declaration
[JsonProperty(PropertyName = "timeLastLogin")]
public DateTime? TimeLastLogin { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime? | The date and time the user last logged in, in the format defined by RFC3339. |
TimePasswordChanged
Declaration
[JsonProperty(PropertyName = "timePasswordChanged")]
public DateTime? TimePasswordChanged { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime? | The date and time the user password was last changed, in the format defined by RFC3339. |
TimePasswordExpiry
Declaration
[JsonProperty(PropertyName = "timePasswordExpiry")]
public DateTime? TimePasswordExpiry { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime? | The date and time the user's password will expire, in the format defined by RFC3339. |
TimeUserCreated
Declaration
[JsonProperty(PropertyName = "timeUserCreated")]
public DateTime? TimeUserCreated { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime? | The date and time the user was created in the database, in the format defined by RFC3339. |
UserCategory
Declaration
[JsonProperty(PropertyName = "userCategory")]
[JsonConverter(typeof(ResponseEnumConverter))]
public UserSummary.UserCategoryEnum? UserCategory { get; set; }
Property Value
| Type | Description |
|---|---|
| UserSummary.UserCategoryEnum? | The user category based on the privileges and other details of the user. |
UserName
Declaration
[Required(ErrorMessage = "UserName is required.")]
[JsonProperty(PropertyName = "userName")]
public string UserName { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The database user name. |
Remarks
Required
UserProfile
Declaration
[JsonProperty(PropertyName = "userProfile")]
public string UserProfile { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The user profile name. |
UserTypes
Declaration
[JsonProperty(PropertyName = "userTypes", ItemConverterType = typeof(ResponseEnumConverter))]
public List<UserSummary.UserTypesEnum> UserTypes { get; set; }
Property Value
| Type | Description |
|---|---|
| List<UserSummary.UserTypesEnum> |