Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
smeg
Helper I
Helper I

How to expire password for only few users when login to Power BI

Hi,

We have set of users in the organization whose password need to be expired after few days,lets say 90 days

I understand that password expiration policy is set for all users in organization (not individually) in Org settings of Microsoft 365 admin centre.But after research I understand that it can be performed for single user in Powershell.So I followed  steps as described in below link 

https://learn.microsoft.com/en-us/azure/active-directory/authentication/concept-sspr-policy#password...

 

I downloaded and installedAzure AD  powershell module and connected to Azure AD tenant as global administrator succesfully

AFter connecting successfully  I entered this command as described in above link  for Set a password to expire

 

Set-AzureADUser -ObjectId <user ID> -PasswordPolicies None

 

I gave one of user id to test it and it went to next line and shown below.

 

smeg_3-1679681471430.png

 

 

 

I am not sure whether the step is successful. and what would be next steps to  set the password to expire after 90 days for that particular few users only.

 

Can anyone please help.

 

Thanks.. 

 

 

 

 

 

4 REPLIES 4
Anand24
Super User
Super User

Hi @smeg ,
I feel like this is the incorrect platform for this query since this is not a Power BI specific query but organizational O365 account handling specific query.
Power BI Services just like any other microsoft application uses O365 accounts as the base of login. All the expiration policies would be handled by the IT Admins of organization. 

PBI_SuperUser_Rank@1x.png  

Give a Thumbs Up if this post helped you in any way and Mark This Post as Solution if it solved your query !!!

Proud To Be a Super User !!!
LinkedIn

smeg
Helper I
Helper I

Hi,thank you for the response.Can you please let me know the steps for  how to create a group of users and set password policy,as I dont know much about powershell?

m-colbert
Resolver II
Resolver II

Try using this cmdLet to read the policy for the individual user you just updated.

Get-ADUserResultantPasswordPolicy (ActiveDirectory) | Microsoft Learn

 

For a group of users, it may be easier to create a user group and then set the password policy to the group instead of the indiviudual users.

Hi @m-colbert ,

 

Can you please guide or provide  me with steps in creating user group and then set password policy to that group in powershell?

 

Thanks..

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors