Class ResetPasswordRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.users.item.authentication.methods.item.resetpassword.ResetPasswordRequestBuilder
@Generated("com.microsoft.kiota")
public class ResetPasswordRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to call the resetPassword method.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassConfiguration for the request such as headers, query parameters, and middleware options. -
Field Summary
Fields inherited from class com.microsoft.kiota.BaseRequestBuilder
pathParameters, requestAdapter, urlTemplate -
Constructor Summary
ConstructorsConstructorDescriptionResetPasswordRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newResetPasswordRequestBuilderand sets the default values.ResetPasswordRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newResetPasswordRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionReset a user's password, represented by a password authentication method object.post(ResetPasswordPostRequestBody body, Consumer<ResetPasswordRequestBuilder.PostRequestConfiguration> requestConfiguration) Reset a user's password, represented by a password authentication method object.com.microsoft.kiota.RequestInformationReset a user's password, represented by a password authentication method object.com.microsoft.kiota.RequestInformationtoPostRequestInformation(ResetPasswordPostRequestBody body, Consumer<ResetPasswordRequestBuilder.PostRequestConfiguration> requestConfiguration) Reset a user's password, represented by a password authentication method object.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
ResetPasswordRequestBuilder
public ResetPasswordRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newResetPasswordRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
ResetPasswordRequestBuilder
public ResetPasswordRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newResetPasswordRequestBuilderand sets the default values.- Parameters:
rawUrl- The raw URL to use for the request builder.requestAdapter- The request adapter to use to execute the requests.
-
-
Method Details
-
post
Reset a user's password, represented by a password authentication method object. This can only be done by an administrator with appropriate permissions and can't be performed on a user's own account. To reset a user's password in Azure AD B2C, use the Update user API operation and update the passwordProfile > forceChangePasswordNextSignIn object. This flow writes the new password to Microsoft Entra ID and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and returns a Location header with a link where the caller can periodically check for the status of the reset operation.- Parameters:
body- The request body- Returns:
- a
PasswordResetResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
post
@Nullable public PasswordResetResponse post(@Nonnull ResetPasswordPostRequestBody body, @Nullable Consumer<ResetPasswordRequestBuilder.PostRequestConfiguration> requestConfiguration) Reset a user's password, represented by a password authentication method object. This can only be done by an administrator with appropriate permissions and can't be performed on a user's own account. To reset a user's password in Azure AD B2C, use the Update user API operation and update the passwordProfile > forceChangePasswordNextSignIn object. This flow writes the new password to Microsoft Entra ID and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and returns a Location header with a link where the caller can periodically check for the status of the reset operation.- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
PasswordResetResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull ResetPasswordPostRequestBody body) Reset a user's password, represented by a password authentication method object. This can only be done by an administrator with appropriate permissions and can't be performed on a user's own account. To reset a user's password in Azure AD B2C, use the Update user API operation and update the passwordProfile > forceChangePasswordNextSignIn object. This flow writes the new password to Microsoft Entra ID and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and returns a Location header with a link where the caller can periodically check for the status of the reset operation.- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull ResetPasswordPostRequestBody body, @Nullable Consumer<ResetPasswordRequestBuilder.PostRequestConfiguration> requestConfiguration) Reset a user's password, represented by a password authentication method object. This can only be done by an administrator with appropriate permissions and can't be performed on a user's own account. To reset a user's password in Azure AD B2C, use the Update user API operation and update the passwordProfile > forceChangePasswordNextSignIn object. This flow writes the new password to Microsoft Entra ID and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and returns a Location header with a link where the caller can periodically check for the status of the reset operation.- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
withUrl
Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.- Parameters:
rawUrl- The raw URL to use for the request builder.- Returns:
- a
ResetPasswordRequestBuilder
-