Class UsersResource.InsertRequest
Creates a user. Mutate calls immediately following user creation might sometimes fail as the user isn't
fully created due to propagation delay in our backends. Check the error details for the "User creation is
not complete" message to see if this is the case. Retrying the calls after some time can help in this case.
If resolve_conflict_account is set to true, the option selected for Find and add unmanaged
users will apply to
resolve conflicting accounts: - A 200 response code indicates the user was created (or replaced an
existing unmanaged personal account). - A 202 response code means that a conflicting unmanaged personal
account exists and was invited to join the organization. - A 409 response code means that a conflicting
account exists so the user wasn't created (e.g. based on the option selected to preserve the account, or if
the email conflicts with an unmanaged work account or existing managed user). For details on resolving
duplicate account errors, see Resolve duplicate account
errors and Transfer unmanaged work
accounts.
Inheritance
Inherited Members
Namespace: Google.Apis.Admin.Directory.directory_v1
Assembly: Google.Apis.Admin.Directory.directory_v1.dll
Syntax
public class UsersResource.InsertRequest : DirectoryBaseServiceRequest<User>, IClientServiceRequest<User>, IClientServiceRequest
Constructors
InsertRequest(IClientService, User)
Constructs a new Insert request.
Declaration
public InsertRequest(IClientService service, User body)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| User | body |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
ResolveConflictAccount
Optional. Applies the option selected for Find and add unmanaged
users to resolve
conflicting accounts when set to true. Default: false
Declaration
[RequestParameter("resolveConflictAccount", RequestParameterType.Query)]
public virtual bool? ResolveConflictAccount { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
| Type | Description |
|---|---|
| object |
Overrides
InitParameters()
Initializes Insert parameter list.
Declaration
protected override void InitParameters()