Forum Discussion
What is the property inside sharepoint user profile service which indicate that the user is blocked
john john As you might be already aware the blocked is partial shutdown of account where you still pay for the user license. Not sure why your org wants to do that but must have some valid reasons.
In out of box way,using SP user profile you can not have any such distinctions between blocked users vs active users. As you are still having the reference alive in AD the user profile service will essentially feed on AD.
But you can always add a custom column in AD such as "User Status: Active, Inactive" and get in synced with your user profile service which explicitly tells your user status. Then once this is done using your user profile service you can read the appropriate value.
Let me know this helps or not.
Vikram_SamalOk thanks for the reply. In our case when someone leaves, his/her "Sing-In Status" = "Blocked" and his "Licenses" = "Unlicensed", as follow, so i think we no longer pay for the license:-
You mentioned to create a custom property in AD and sync it to the SP user profile service, but i have these 2 questions about the approach you are proposing:-
1. why i need to create a custom property in AD to indicate if the user if blocked or not? since the info is already inside AD as shown in the above picture?
2. based on my reading that in sharepoint online user profile service we can not create custom properties, so even if i create the custom property inside AD, then how i am going to map it to the SP user profile service? any advice?
Thanks