Class OAuth2PermissionGrant

java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.OAuth2PermissionGrant
All Implemented Interfaces:
com.microsoft.graph.serializer.IJsonBackedObject

public class OAuth2PermissionGrant extends Entity implements com.microsoft.graph.serializer.IJsonBackedObject
The class for the OAuth2Permission Grant.
  • Field Details

    • clientId

      @SerializedName(value="clientId", alternate="ClientId") @Expose @Nullable public String clientId
      The Client Id. The id of the client service principal for the application which is authorized to act on behalf of a signed-in user when accessing an API. Required. Supports $filter (eq only).
    • consentType

      @SerializedName(value="consentType", alternate="ConsentType") @Expose @Nullable public String consentType
      The Consent Type. Indicates if authorization is granted for the client application to impersonate all users or only a specific user. AllPrincipals indicates authorization to impersonate all users. Principal indicates authorization to impersonate a specific user. Consent on behalf of all users can be granted by an administrator. Non-admin users may be authorized to consent on behalf of themselves in some cases, for some delegated permissions. Required. Supports $filter (eq only).
    • principalId

      @SerializedName(value="principalId", alternate="PrincipalId") @Expose @Nullable public String principalId
      The Principal Id. The id of the user on behalf of whom the client is authorized to access the resource, when consentType is Principal. If consentType is AllPrincipals this value is null. Required when consentType is Principal. Supports $filter (eq only).
    • resourceId

      @SerializedName(value="resourceId", alternate="ResourceId") @Expose @Nullable public String resourceId
      The Resource Id. The id of the resource service principal to which access is authorized. This identifies the API which the client is authorized to attempt to call on behalf of a signed-in user. Supports $filter (eq only).
    • scope

      @SerializedName(value="scope", alternate="Scope") @Expose @Nullable public String scope
      The Scope. A space-separated list of the claim values for delegated permissions which should be included in access tokens for the resource application (the API). For example, openid User.Read GroupMember.Read.All. Each claim value should match the value field of one of the delegated permissions defined by the API, listed in the oauth2PermissionScopes property of the resource service principal. Must not exceed 3850 characters in length.
  • Constructor Details

    • OAuth2PermissionGrant

      public OAuth2PermissionGrant()
  • 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 Entity
      Parameters:
      serializer - the serializer
      json - the JSON object to set this object to