Class AppRoleAssignment

All Implemented Interfaces:
com.microsoft.graph.serializer.IJsonBackedObject

public class AppRoleAssignment extends DirectoryObject implements com.microsoft.graph.serializer.IJsonBackedObject
The class for the App Role Assignment.
  • Field Details

    • appRoleId

      @SerializedName(value="appRoleId", alternate="AppRoleId") @Expose @Nullable public UUID appRoleId
      The App Role Id. The identifier (id) for the app role which is assigned to the principal. This app role must be exposed in the appRoles property on the resource application's service principal (resourceId). If the resource application has not declared any app roles, a default app role ID of 00000000-0000-0000-0000-000000000000 can be specified to signal that the principal is assigned to the resource app without any specific app roles. Required on create.
    • createdDateTime

      @SerializedName(value="createdDateTime", alternate="CreatedDateTime") @Expose @Nullable public OffsetDateTime createdDateTime
      The Created Date Time. The time when the app role assignment was created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
    • principalDisplayName

      @SerializedName(value="principalDisplayName", alternate="PrincipalDisplayName") @Expose @Nullable public String principalDisplayName
      The Principal Display Name. The display name of the user, group, or service principal that was granted the app role assignment. Read-only. Supports $filter (eq and startswith).
    • principalId

      @SerializedName(value="principalId", alternate="PrincipalId") @Expose @Nullable public UUID principalId
      The Principal Id. The unique identifier (id) for the user, group, or service principal being granted the app role. Required on create.
    • principalType

      @SerializedName(value="principalType", alternate="PrincipalType") @Expose @Nullable public String principalType
      The Principal Type. The type of the assigned principal. This can either be User, Group, or ServicePrincipal. Read-only.
    • resourceDisplayName

      @SerializedName(value="resourceDisplayName", alternate="ResourceDisplayName") @Expose @Nullable public String resourceDisplayName
      The Resource Display Name. The display name of the resource app's service principal to which the assignment is made.
    • resourceId

      @SerializedName(value="resourceId", alternate="ResourceId") @Expose @Nullable public UUID resourceId
      The Resource Id. The unique identifier (id) for the resource service principal for which the assignment is made. Required on create. Supports $filter (eq only).
  • Constructor Details

    • AppRoleAssignment

      public AppRoleAssignment()
  • Method Details

    • setRawObject

      public void setRawObject(@Nonnull com.microsoft.graph.serializer.ISerializer serializer, @Nonnull com.google.gson.JsonObject json)
      Sets the raw JSON object
      Specified by:
      setRawObject in interface com.microsoft.graph.serializer.IJsonBackedObject
      Overrides:
      setRawObject in class DirectoryObject
      Parameters:
      serializer - the serializer
      json - the JSON object to set this object to