How to reset Azure AD User's temporary password? - azure

I created Active Directory in Azure. I created new user (as global admin) with *#*.onmicrosoft.com login. User gets assigned temporary password, that has to be changed on first login.
User is created so that I can use it with Azure AD Connect, to connect on-premise domain with Azure. Until password is reset, it is considered as expired.
Where can I login with that user to reset password?

Please login into Azure Portal as that user. As a part of the login process, the user will be asked to reset the password because the user is logging in for the first time.

Related

Azure Active Directory B2C new user invite to set their initial password

In short: how to set up Azure B2C to pre-create users and invite them to set their initial password (rather than reset it).
We have public facing website that an organisation can pay for and it gives them access to their own area. We add one or more user's email addresses to our database to grant them a login. Privileged users at the organisation can invite other users to grant them access to their organisation's area.
We wish to move our authentication, session and password management from a home grown solution to Azure AD B2C.
A new user currently receives a friendly invitation email with a hyperlink that contains a token that gives them permission to set their password.
We could create a custom policy to handle this but I really don't want to go down that route due to their complexity and shelf life.
The only way that I've found "out of the box" is to create the user in Azure AD (not problem with that), set a temporary password and email them an invite asking them to "reset" their password. The reset part is very unclean as they are not resetting their password, they are setting their initial password and this will be confusing.
Also note that we do not want the user to be able to change their email to something like a hotmail account, as the admin must be in charge of this to ensure they use their work email.
All help appreciated.
Andy
• In your scenario, I would suggest you configure an application registration in Azure AD B2C and configure user flows in it for resetting the password for every user logging in it. Also, while registering an application in Azure AD B2C, you can select the option for ‘Accounts in this organizational directory only (Default Directory only - Single tenant)’ and integrate it with your website in the frontend API such that the user flow to reset the password after verifying the email address comes up for every user.
For the above said configuration, kindly refer to the below documentation link for more details as it describes the configuration for registering users of a single tenant/organization: -
https://learn.microsoft.com/en-us/azure/active-directory-b2c/identity-provider-azure-ad-single-tenant?pivots=b2c-user-flow
Also, refer to the below documentation link for resetting the initial temporary password using the user flow section as setting up a user flow is a very simple process as described below: -
https://learn.microsoft.com/en-us/azure/active-directory-b2c/add-password-reset-policy?pivots=b2c-user-flow

How to provide the reset password feature outside Azure context?

My scenario is a public website, with authenticated access that is managed by AzureAdB2C, and the authentication is not embedded but on a subdomain style. In the authentication form I see that there's the option for password reset (for someone who forgets it) but my question is when the user is already authenticated and so outside Azure context, how can he ask for a password change?
Is there any endpoint or so (that would receive the email linked to the account)?
Thank you
Still not clear because you mention "fire the change/reset password flow?". Which is it or is it both?
If reset, you can use a custom policy. Just put the link to the policy on your page.
There are a number of password reset flows that may be of interest.
For change password, see here. Again, just put the policy link on the page.
Unsure if you would have to login again.
You can Configure password change using custom policies in Azure Active Directory B2C.
In Azure Active Directory B2C (Azure AD B2C), you can enable users who are signed in with a local account to change their password without having to prove their identity through email verification. The password change flow involves following steps:
The user signs in to their local account. If the session is still active, Azure AD B2C authorizes the user and skips to the next step.
The user verifies the Old password, and then creates and confirms the New password.
If the question is to reset the password because the user forgot it but is still logged in, I can imagine logging out the user and redirecting them to the login page where they can choose the reset password option.
EDIT:
The Azure AD B2C article Set up self-service password reset for your customers states that
This article applies to self-service password reset used in the context of the standard Sign in user flow, which uses Local Account SignIn as the identity provider. If you need fully customizable password reset user flows invoked from your app, see this article.
Somehow resetting your password with a password reset flow / custom policy while you're logged in and don't 'need' your current password feels weird.

User needs to re-authenticate with Azure AD B2C after the user closes and reopens the browser

I have an Angular front end application which is using Azure AD B2C custom policies(Home Realm Discovery) to authenticate the federated AAD user.
After I login to the application with federated Azure AD tenant user, close this tab(without logout) then open a new tab, access application and login, this user can be automatically sign in. This is the expected behavior as SSO feature.
But if I close the browser and reopen the browser, when try to login it asks me to input user name, seems the session is lost and the user need to re-authenticate.
I saw below documentation on Microsoft website:
The Keep me signed-in feature extends the session life time through
the use of a persistent cookie. The session remains active after the
user closes and reopens the browser. The session is revoked only when
a user signs out. The Keep me signed-in feature only applies to
sign-in with local accounts.
I was wondering is there a way to use the persistent cookie for Azure AD B2C(federated Azure AD tenant user)? How can I keep the session active after the user closes and reopens the browser?
Any help would be appreciated. Thanks.
According Microsoft doc.
You can enable Keep Me Signed In (KMSI) functionality for users of
your web and native applications that have local accounts in your
Azure Active Directory B2C (Azure AD B2C) directory. This feature
grants access to users returning to your application without prompting
them to reenter their username and password. This access is revoked
when a user signs out.
And Prerequisites.
An Azure AD B2C tenant that is configured to allow local account
sign-in. KMSI is unsupported for external identity provider accounts.
So,at present, there is no way to use the persistent cookie for Azure AD B2C(federated Azure AD tenant user).
For more information,please refer to this.

[Azure AD]: Reset Password button Disabled

I was Login as a Global Administrator i was select the user and try to reset the password. but, the password reset button is disabled. how can i enable the reset password button. Azure AD.
i was disable any permission in dashboard or any other reason for disable in reset password. Anyone know share me.
Thanks in Advance.
I think the user that you want to reset password for is an external user.
You cannot reset the password for the users that from external, such as guest users
You can reset internal users that are in your Azure AD .External users can reset their passwords by themselves in the login website.
If the user account in question is an internal user, i.e the user UPN would end with either the default domain of the tenant or a verified custom domain – you would be able to reset the password as a GA. However, if the user belongs to another tenant you would not have the access to reset the password. Also, the same applies to Guest Users as explained by Wayne.
In this case, you could ask the user in question to visit https://aka.ms/sspr for Self Service Password Reset.

Azure AD B2C reset a user's password

I have reset the user's password using Azure AD Graph API
https://msdn.microsoft.com/en-us/library/azure/ad/graph/api/users-operations
When I tried to login with user's old password, AD B2C still allows the user to login. I have to restrict the access to the user's old password. Please assist.
There is a replication delay that should be on the order of seconds to a minute or two. The way that Azure AD works is that there is a Primary that handles writes (change password) and several secondary instances that handle reads (login) and it is expected to see a short delay in replicating the new password to all of the secondary instances. See https://blogs.technet.microsoft.com/enterprisemobility/2014/09/02/azure-ad-under-the-hood-of-our-geo-redundant-highly-available-distributed-cloud-directory/
Is this problem temporary or is it persistent? Meaning after a minute can the user no longer login with the old password? Also, is the user able to login with the new password?

Resources