Class PermissionScope

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

public class PermissionScope extends Object implements com.microsoft.graph.serializer.IJsonBackedObject
The class for the Permission Scope.
  • Field Details

    • oDataType

      @SerializedName("@odata.type") @Expose @Nullable public String oDataType
      the OData type of the object as returned by the service
    • adminConsentDescription

      @SerializedName(value="adminConsentDescription", alternate="AdminConsentDescription") @Expose @Nullable public String adminConsentDescription
      The Admin Consent Description. A description of the delegated permissions, intended to be read by an administrator granting the permission on behalf of all users. This text appears in tenant-wide admin consent experiences.
    • adminConsentDisplayName

      @SerializedName(value="adminConsentDisplayName", alternate="AdminConsentDisplayName") @Expose @Nullable public String adminConsentDisplayName
      The Admin Consent Display Name. The permission's title, intended to be read by an administrator granting the permission on behalf of all users.
    • id

      @SerializedName(value="id", alternate="Id") @Expose @Nullable public UUID id
      The Id. Unique delegated permission identifier inside the collection of delegated permissions defined for a resource application.
    • isEnabled

      @SerializedName(value="isEnabled", alternate="IsEnabled") @Expose @Nullable public Boolean isEnabled
      The Is Enabled. When creating or updating a permission, this property must be set to true (which is the default). To delete a permission, this property must first be set to false. At that point, in a subsequent call, the permission may be removed.
    • origin

      @SerializedName(value="origin", alternate="Origin") @Expose @Nullable public String origin
      The Origin.
    • type

      @SerializedName(value="type", alternate="Type") @Expose @Nullable public String type
      The Type. The possible values are: User and Admin. Specifies whether this delegated permission should be considered safe for non-admin users to consent to on behalf of themselves, or whether an administrator consent should always be required. While Microsoft Graph defines the default consent requirement for each permission, the tenant administrator may override the behavior in their organization (by allowing, restricting, or limiting user consent to this delegated permission). For more information, see Configure how users consent to applications.
    • userConsentDescription

      @SerializedName(value="userConsentDescription", alternate="UserConsentDescription") @Expose @Nullable public String userConsentDescription
      The User Consent Description. A description of the delegated permissions, intended to be read by a user granting the permission on their own behalf. This text appears in consent experiences where the user is consenting only on behalf of themselves.
    • userConsentDisplayName

      @SerializedName(value="userConsentDisplayName", alternate="UserConsentDisplayName") @Expose @Nullable public String userConsentDisplayName
      The User Consent Display Name. A title for the permission, intended to be read by a user granting the permission on their own behalf. This text appears in consent experiences where the user is consenting only on behalf of themselves.
    • value

      @SerializedName(value="value", alternate="Value") @Expose @Nullable public String value
      The Value. Specifies the value to include in the scp (scope) claim in access tokens. Must not exceed 120 characters in length. Allowed characters are : ! # $ % & ' ( ) * + , - . / : ; = ? @ [ ] ^ + _ { } ~, as well as characters in the ranges 0-9, A-Z and a-z. Any other character, including the space character, are not allowed. May not begin with ..
  • Constructor Details

    • PermissionScope

      public PermissionScope()
  • Method Details

    • additionalDataManager

      @Nonnull public final com.microsoft.graph.serializer.AdditionalDataManager additionalDataManager()
      Specified by:
      additionalDataManager in interface com.microsoft.graph.serializer.IJsonBackedObject
    • 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
      Parameters:
      serializer - the serializer
      json - the JSON object to set this object to