Class AuthorizationPolicy

All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel

@Generated("com.microsoft.kiota") public class AuthorizationPolicy extends PolicyBase implements com.microsoft.kiota.serialization.Parsable
  • Constructor Details

    • AuthorizationPolicy

      public AuthorizationPolicy()
      Instantiates a new AuthorizationPolicy and sets the default values.
  • Method Details

    • createFromDiscriminatorValue

      @Nonnull public static AuthorizationPolicy createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode)
      Creates a new instance of the appropriate class based on discriminator value
      Parameters:
      parseNode - The parse node to use to read the discriminator value and create the object
      Returns:
      a AuthorizationPolicy
    • getAllowedToSignUpEmailBasedSubscriptions

      @Nullable public Boolean getAllowedToSignUpEmailBasedSubscriptions()
      Gets the allowedToSignUpEmailBasedSubscriptions property value. Indicates whether users can sign up for email based subscriptions.
      Returns:
      a Boolean
    • getAllowedToUseSSPR

      @Nullable public Boolean getAllowedToUseSSPR()
      Gets the allowedToUseSSPR property value. Indicates whether administrators of the tenant can use the Self-Service Password Reset (SSPR). For more information, see Self-service password reset for administrators.
      Returns:
      a Boolean
    • getAllowEmailVerifiedUsersToJoinOrganization

      @Nullable public Boolean getAllowEmailVerifiedUsersToJoinOrganization()
      Gets the allowEmailVerifiedUsersToJoinOrganization property value. Indicates whether a user can join the tenant by email validation.
      Returns:
      a Boolean
    • getAllowInvitesFrom

      @Nullable public AllowInvitesFrom getAllowInvitesFrom()
      Gets the allowInvitesFrom property value. Indicates who can invite guests to the organization. Possible values are: none, adminsAndGuestInviters, adminsGuestInvitersAndAllMembers, everyone. everyone is the default setting for all cloud environments except US Government. For more information, see allowInvitesFrom values.
      Returns:
      a AllowInvitesFrom
    • getAllowUserConsentForRiskyApps

      @Nullable public Boolean getAllowUserConsentForRiskyApps()
      Gets the allowUserConsentForRiskyApps property value. Indicates whether user consent for risky apps is allowed. We recommend keeping allowUserConsentForRiskyApps as false. Default value is false.
      Returns:
      a Boolean
    • getBlockMsolPowerShell

      @Nullable public Boolean getBlockMsolPowerShell()
      Gets the blockMsolPowerShell property value. To disable the use of MSOL PowerShell, set this property to true. This also disables user-based access to the legacy service endpoint used by MSOL PowerShell. This doesn't affect Microsoft Entra Connect or Microsoft Graph.
      Returns:
      a Boolean
    • getDefaultUserRolePermissions

      @Nullable public DefaultUserRolePermissions getDefaultUserRolePermissions()
      Gets the defaultUserRolePermissions property value. The defaultUserRolePermissions property
      Returns:
      a DefaultUserRolePermissions
    • getFieldDeserializers

      @Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()
      The deserialization information for the current model
      Specified by:
      getFieldDeserializers in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      getFieldDeserializers in class PolicyBase
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getGuestUserRoleId

      @Nullable public UUID getGuestUserRoleId()
      Gets the guestUserRoleId property value. Represents role templateId for the role that should be granted to guests. Currently following roles are supported: User (a0b1b346-4d3e-4e8b-98f8-753987be4970), Guest User (10dae51f-b6af-4016-8d66-8c2a99b929b3), and Restricted Guest User (2af84b1e-32c8-42b7-82bc-daa82404023b).
      Returns:
      a UUID
    • serialize

      public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer)
      Serializes information the current object
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      serialize in class PolicyBase
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setAllowedToSignUpEmailBasedSubscriptions

      public void setAllowedToSignUpEmailBasedSubscriptions(@Nullable Boolean value)
      Sets the allowedToSignUpEmailBasedSubscriptions property value. Indicates whether users can sign up for email based subscriptions.
      Parameters:
      value - Value to set for the allowedToSignUpEmailBasedSubscriptions property.
    • setAllowedToUseSSPR

      public void setAllowedToUseSSPR(@Nullable Boolean value)
      Sets the allowedToUseSSPR property value. Indicates whether administrators of the tenant can use the Self-Service Password Reset (SSPR). For more information, see Self-service password reset for administrators.
      Parameters:
      value - Value to set for the allowedToUseSSPR property.
    • setAllowEmailVerifiedUsersToJoinOrganization

      public void setAllowEmailVerifiedUsersToJoinOrganization(@Nullable Boolean value)
      Sets the allowEmailVerifiedUsersToJoinOrganization property value. Indicates whether a user can join the tenant by email validation.
      Parameters:
      value - Value to set for the allowEmailVerifiedUsersToJoinOrganization property.
    • setAllowInvitesFrom

      public void setAllowInvitesFrom(@Nullable AllowInvitesFrom value)
      Sets the allowInvitesFrom property value. Indicates who can invite guests to the organization. Possible values are: none, adminsAndGuestInviters, adminsGuestInvitersAndAllMembers, everyone. everyone is the default setting for all cloud environments except US Government. For more information, see allowInvitesFrom values.
      Parameters:
      value - Value to set for the allowInvitesFrom property.
    • setAllowUserConsentForRiskyApps

      public void setAllowUserConsentForRiskyApps(@Nullable Boolean value)
      Sets the allowUserConsentForRiskyApps property value. Indicates whether user consent for risky apps is allowed. We recommend keeping allowUserConsentForRiskyApps as false. Default value is false.
      Parameters:
      value - Value to set for the allowUserConsentForRiskyApps property.
    • setBlockMsolPowerShell

      public void setBlockMsolPowerShell(@Nullable Boolean value)
      Sets the blockMsolPowerShell property value. To disable the use of MSOL PowerShell, set this property to true. This also disables user-based access to the legacy service endpoint used by MSOL PowerShell. This doesn't affect Microsoft Entra Connect or Microsoft Graph.
      Parameters:
      value - Value to set for the blockMsolPowerShell property.
    • setDefaultUserRolePermissions

      public void setDefaultUserRolePermissions(@Nullable DefaultUserRolePermissions value)
      Sets the defaultUserRolePermissions property value. The defaultUserRolePermissions property
      Parameters:
      value - Value to set for the defaultUserRolePermissions property.
    • setGuestUserRoleId

      public void setGuestUserRoleId(@Nullable UUID value)
      Sets the guestUserRoleId property value. Represents role templateId for the role that should be granted to guests. Currently following roles are supported: User (a0b1b346-4d3e-4e8b-98f8-753987be4970), Guest User (10dae51f-b6af-4016-8d66-8c2a99b929b3), and Restricted Guest User (2af84b1e-32c8-42b7-82bc-daa82404023b).
      Parameters:
      value - Value to set for the guestUserRoleId property.