Edit

Share via


qrCode resource type

Namespace: microsoft.graph

Important

APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.

Represents either standard or temporary QR code of a user's QR code authentication method.

Inherits from entity

Methods

Method Return type Description
Create or update qrCode Create or update a standard or temporary qrCode object for a user.
Get qrCode Get a user's standard or temporary qrCode object.
Update qrCode Update a user's standard qrCode object.
Delete None Delete a user's standard or temporary qrCode object.

Properties

Property Type Description
createdDateTime DateTimeOffset The date and time when the QR code was created.
expireDateTime DateTimeOffset Temporary QR code lifetime is between 1-12 hours. Standard QR code lifetime is in days and max. is 395 days (13 months) and default value is 365 days (12 months).
id String Unique identifier of the QR code. Inherits from entity
image qrCodeImageDetails The QR code image's raw data that is returned when a standard or temporary QR code is created.
lastUsedDateTime DateTimeOffset The date and time when the QR code was last used for a successful sign-in.
startDateTime DateTimeOffset The date and time when the QR code becomes active and available to use.

Relationships

None.

JSON representation

The following JSON representation shows the resource type.

{
  "@odata.type": "#microsoft.graph.qrCode",
  "id": "String (identifier)",
  "expireDateTime": "String (timestamp)",
  "startDateTime": "String (timestamp)",
  "createdDateTime": "String (timestamp)",
  "lastUsedDateTime": "String (timestamp)",
  "image": {
    "@odata.type": "microsoft.graph.qrCodeImageDetails"
  }
}