# Microsoft 365 for Workflows: "Failed to login" or "Invalid client secret"

**URL:** <https://community.dynatrace.com/t/microsoft-365-for-workflows-failed-to-login-or-invalid-client-secret/44567>\
**Category:** Troubleshooting\
**Tags:** microsoft-365, workflows, automation\
**Created:** [March 20, 2024, 10:20am UTC](https://community.dynatrace.com/t/microsoft-365-for-workflows-failed-to-login-or-invalid-client-secret/44567 "2024-03-20T10:20:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MonikaBalogh](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/monikabalogh/32/10833_2.png) [@MonikaBalogh](https://community.dynatrace.com/u/MonikaBalogh)\
**Post date:** [March 20, 2024, 10:20am UTC](https://community.dynatrace.com/t/microsoft-365-for-workflows-failed-to-login-or-invalid-client-secret/44567/1 "2024-03-20T10:20:00Z")

</div>

These error messages are typically related to issues concerning the setup steps described above in&nbsp;[Authorize connection to Microsoft Azure](https://docs.dynatrace.com/docs/platform-modules/automations/workflows/actions/microsoft365#credentials).

Make sure you use the client secret and not the object ID linked to it. The object ID is public and shown for every client secret.
