---
title: Rotating the client secret for a resource
description: For security reasons, you should change a resource's client secret on a regular basis. If you think the client secret might have been compromised, you should change it immediately.
component: pingone
page_id: pingone:applications:p1_rotate_client_secret_resource
canonical_url: https://docs.pingidentity.com/pingone/applications/p1_rotate_client_secret_resource.html
revdate: May 3, 2024
---

# Rotating the client secret for a resource

For security reasons, you should change a resource's client secret on a regular basis. If you think the client secret might have been compromised, you should change it immediately.

After you update a client secret in PingOne, you must also update all resources that use the secret. You can retain the previous client secret to give resource owners time to update the secret without causing errors for their users. Use the PingOne admin console or the PingOne API to change a client secret.

Learn more in:

* [Viewing the client secret for a resource](p1_viewing_client_secret_for_a_resource.html)

* [Generating a client secret for a resource](p1_generate_client_secret_resource.html)

* [Revoking a client secret for a custom resource](p1_revoke_client_secret_resource.html)

* To use the PingOne API to rotate a client secret, refer to [Resource secret](https://developer.pingidentity.com/pingone-api/platform/resources/resource-secret.html) in the PingOne Platform API documentation.
