Skip to content

IAdmO365AccountProperties

The IAdmO365AccountProperties interface represents properties of a Microsoft 365 account.

Inheritance: The IAdmO365AccountProperties interface inherits from the IUnknown interface.

Methods

  • Method

  • Description

  • InitLicenses()

  • Populates the Licenses property with a set of licenses that can be assigned to the user.

Properties

  • Property

  • Description

  • Location

  • Gets or sets the location of the Microsoft 365 user.

  • LocationModificationEnabled

  • Gets or sets a value that indicates whether the Location property of the user will be modified.

  • Licenses

  • Gets a list of licenses that can be assigned to the user.

  • ObjectId

  • Gets the unique identifier of the user account in Microsoft 365.

  • SignInBlocked

  • Gets or sets a value that indicates whether the user is able to sign in to Microsoft 365.

  • SignInBlockedModificationEnabled

  • Gets or sets a value that indicates whether the SignInBlocked property of the user will be modified.

  • RevokeAllLicenses

  • Gets or sets a value that indicates whether to revoke all user’s licenses.

  • InitialPassword

  • Gets or sets the initial password that is assigned to the user when the Microsoft 365 account is activated.

  • ContainsModifications

  • Gets a value that indicates whether any of the Microsoft 365 account properties will be modified.

Details

InitLicenses()

Populates the Licenses property with a set of licenses that can be assigned to the user.

void InitLicenses(IAdmO365SkuInfo[] skus)

Parameters

The skus parameter specifies the Microsoft 365 license plans to add licenses from.


Location

Gets or sets the location of the Microsoft 365 user. The value of the property must be represented by a two-letter country code as defined in ISO 3166-1 (e.g. US or DE).

  • Type:
  • String
  • Access:
  • Read/Write

Remarks

When the property is modified, the LocationModificationEnabled property is set to TRUE automatically.


LocationModificationEnabled

Gets or sets a value that indicates whether the Location property of the user will be modified.

  • Type:
  • Boolean
  • Access:
  • Read/Write

Licenses

Gets a list of licenses that can be assigned to the user.

Remarks

To populate the property with a new set of licenses, use the InitLicenses method.


ObjectId

Gets the unique identifier of the user account in Microsoft 365.

  • Type:
  • String
  • Access:
  • Read-only

SignInBlocked

Gets or sets a value that indicates whether the user is able to sign in to Microsoft 365.

  • Type:
  • Boolean
  • Access:
  • Read/Write

Remarks

When the property is modified, the SignInBlockedModificationEnabled property is set to TRUE automatically.


SignInBlockedModificationEnabled

Gets or sets a value that indicates whether the SignInBlocked property of the user will be modified.

  • Type:
  • Boolean
  • Access:
  • Read/Write

RevokeAllLicenses

Gets or sets a value that indicates whether to revoke all user’s licenses.

  • Type:
  • Boolean
  • Access:
  • Read/Write

InitialPassword

Gets or sets the initial password that is assigned to the user when the Microsoft 365 account is activated.

  • Type:
  • String
  • Access:
  • Read/Write

Remarks

You can use this property only if the IAdmO365Tenant::SynchronizePasswords property is enabled for the Microsoft 365 tenant associated with the user.


ContainsModifications

Gets a value that indicates whether any of the Microsoft 365 account properties will be modified.

  • Type:
  • Boolean
  • Access:
  • Read-only

Requirements

Minimum required version: 2014.1

See also