IAdmM365AccountProperties

The IAdmM365AccountProperties interface represents properties of a Microsoft 365 account.

Methods

  • Method

  • Description

  • InitAllLicenses()

  • Populates the Licenses property with all Microsoft 365 licenses and services from all Microsoft 365 tenants registered in Adaxes.

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.

  • LastDirSyncTimeUtc

  • Gets the UTC time when the Active Directory and the Microsoft 365 account were last synchronized.

Details

InitAllLicenses()

Populates the Licenses property with all Microsoft 365 licenses and services from all Microsoft 365 tenants registered in Adaxes.

void InitAllLicenses(IAdmM365Container m365Container, bool enabledOnly)

Parameters

  • m365Container - Specifies an instance of the IAdmM365Container interface that represents the container where Microsoft 365 tenants are stored.
  • enabledOnly - Specifies whether to populate the property only with enabled Microsoft 365 licenses. A license is considered enabled if it is enabled in at least one Microsoft 365 tenant.

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:
  • bool
  • 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:
  • bool
  • 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:
  • bool
  • Access:
  • Read/Write

RevokeAllLicenses

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

  • Type:
  • bool
  • 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 IAdmM365Tenant::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:
  • bool
  • Access:
  • Read-only

LastDirSyncTimeUtc

Gets the UTC time when the Active Directory and the Microsoft 365 account were last synchronized. If the synchronization never occurred, the property is DateTime.MinValue.

  • Type:
  • DateTime
  • Access:
  • Read-only

Requirements

Minimum required version: 2023

See also