Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device.
Atlassian cookies and tracking notice, (opens new window)
Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
🔍 Discover Our Product Documentation

Barracuda CloudGen Access
Results will update as you type.
  • Getting Started
  • Deployment
  • CloudGen Access Console
  • CloudGen Access Application
  • CloudGen Access User Directory Connector
  • CloudGen Access Proxy
  • CloudGen Access CLI Client
  • FAQ
  • Best Practices
    • DC Authentication and Access to Windows Shares
    • How to Configure an Active Directory by Using DNS over Resource
    • How to Create Microsoft Entra ID Guest Accounts
    • How to Disable Secure DNS
    • How to Set Up a Windows Share
    • How to Set Up a Microsoft Entra ID SQL Server
    • How to Upgrade to CloudGen Access Virtual Appliance v1.1.1 and Newer
    • Microsoft 365 Configuration
      • Conditional Access Deployment
      • Passwordless Deployment
        • How to Change User Passwords When Using Microsoft Azure
  • Maintenance
  • Troubleshooting
  • Release Notes
  • Glossary
  • Security Advisories

    You‘re viewing this with anonymous access, so some content might be blocked.
    /
    How to Change User Passwords When Using Microsoft Azure
    Published Apr 03, 2024

    How to Change User Passwords When Using Microsoft Azure

    Apr 03, 2024
    Subscribe

    When using Microsoft Azure, federated users are managed by the federated account in CloudGen Access, and the user may have difficulty changing the password in Azure. If running either Set-AzureADUserPassword or Set-MsolUserPassword fails with one of the following errors:

    • Set-MsolUserPassword : You cannot reset a password for a federated user.

    • Set-AzureADUserPassword : Error occurred while executing  SetUser Code: Request_BadRequest

    For a workaround, you can temporarily change the user’s UserPrincipalName to that of a managed domain, update the password, and then change the UserPrincipalName back to the federated domain.

    # Change UPN to managed domain Set-AzureADUser -ObjectId xxxxx -UserPrincipalName user@domain.onmicrosoft.com # Update the password Set-AzureADUserPassword -ObjectId xxxxx # Change UPN back to the federated domain Set-AzureADUser -ObjectId xxxxx -UserPrincipalName user@domain.com

    The user will eventually be signed out of the apps they are using, and will have to sign in again. The new password will remain until the user changes their password on-prem in Microsoft Entra ID, which will then sync across to Microsoft Entra ID.

    For hybrid environments, users can still make changes on the Entra ID that will be sync'ed with Azure.


    We value your feedback.
    If you have questions, suggestions, or feedback on our documentation, contact the Campus Product Documentation team.
    For general product inquiries or technical support, please contact the global Barracuda Support team.

    {"serverDuration": 13, "requestCorrelationId": "ffde83ef5d9345a9be525c44b5e0fff8"}