Package com.microsoft.graph.models
Class AuthorizationPolicy
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.DirectoryObject
com.microsoft.graph.models.PolicyBase
com.microsoft.graph.models.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
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AuthorizationPolicycreateFromDiscriminatorValue(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the allowedToSignUpEmailBasedSubscriptions property value.Gets the allowedToUseSSPR property value.Gets the allowEmailVerifiedUsersToJoinOrganization property value.Gets the allowInvitesFrom property value.Gets the allowUserConsentForRiskyApps property value.Gets the blockMsolPowerShell property value.Gets the defaultUserRolePermissions property value.The deserialization information for the current modelGets the guestUserRoleId property value.voidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoidSets the allowedToSignUpEmailBasedSubscriptions property value.voidsetAllowedToUseSSPR(Boolean value) Sets the allowedToUseSSPR property value.voidSets the allowEmailVerifiedUsersToJoinOrganization property value.voidSets the allowInvitesFrom property value.voidSets the allowUserConsentForRiskyApps property value.voidsetBlockMsolPowerShell(Boolean value) Sets the blockMsolPowerShell property value.voidSets the defaultUserRolePermissions property value.voidsetGuestUserRoleId(UUID value) Sets the guestUserRoleId property value.Methods inherited from class com.microsoft.graph.models.PolicyBase
getDescription, getDisplayName, setDescription, setDisplayNameMethods inherited from class com.microsoft.graph.models.DirectoryObject
getDeletedDateTime, setDeletedDateTimeMethods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
AuthorizationPolicy
public AuthorizationPolicy()Instantiates a newAuthorizationPolicyand 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
Gets the allowedToSignUpEmailBasedSubscriptions property value. Indicates whether users can sign up for email based subscriptions.- Returns:
- a
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
Gets the allowEmailVerifiedUsersToJoinOrganization property value. Indicates whether a user can join the tenant by email validation.- Returns:
- a
Boolean
-
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
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
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
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:
getFieldDeserializersin interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
getFieldDeserializersin classPolicyBase- Returns:
- a
Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
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:
serializein interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
serializein classPolicyBase- Parameters:
writer- Serialization writer to use to serialize this model
-
setAllowedToSignUpEmailBasedSubscriptions
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
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
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
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
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
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
Sets the defaultUserRolePermissions property value. The defaultUserRolePermissions property- Parameters:
value- Value to set for the defaultUserRolePermissions property.
-
setGuestUserRoleId
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.
-