IAdmM365AccountProperties
The IAdmM365AccountProperties interface represents the properties of a Microsoft 365 account.
Methods
-
Method
-
Description
-
InitAllLicenses()
-
Populates the
Licensesproperty with all Microsoft 365 licenses and services from all Microsoft 365 tenants registered in Adaxes.
Properties
-
Property
-
Description
-
Location
-
Gets or sets the usage location of the Microsoft 365 account.
-
LocationModificationEnabled
-
Gets or sets a value that indicates whether the
Locationproperty 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
SignInBlockedproperty of the user will be modified. -
RevokeAllLicenses
-
Gets or sets a value that triggers the revocation of all licenses if
true. -
InitialPassword
-
Gets or sets the initial password which is assigned to the user when their 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 – an instance of the IAdmM365Container interface that represents the container where Microsoft 365 tenants are stored.
- enabledOnly – set to
trueto 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 usage location of the Microsoft 365 account. The value of the property is specified in the ISO 3166-1 format – a two-letter country code (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.
- Type:
- IAdmM365License[]
- Access:
- Read-only
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 triggers the revocation of all licenses if true.
- Type:
- bool
- Access:
- Read/Write
InitialPassword
Gets or sets the initial password which is assigned to the user when their 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 will return DateTime.MinValue.
- Type:
- DateTime
- Access:
- Read-only
Requirements
Minimum required version: 2023