0 votes

Is there a way for Adaxes to use a user's Microsoft 365 profile pictures instead of having to select a file on a per user basis?

by (20 points)
0

Hello Keneth,

Sorry for the confusion, but we are not sure what exactly you mean. Please, describe the desired behavior in all the possible details with live examples.

0

Thank you for the quick response! Many of our users in our Microsoft 365 tenant have added personalized profile pictures to their accounts that appear on their Office.com profile, as well as in Outlook. I would like to know if there is a way for Adaxes to use those pictures for user profiles.

0

You can sync the M365 photo to on-prem AD with a scheduled task. Here are the basics:

# you'll need to figure out how you want to get and store the credential to connect to the MS Graph API
Connect-MgGraph -TenantId <yourTenantId> -Credential $<graphCredential>

$photoPath = New-TemporaryFile
Get-MgUser -Filter "userprincipalname eq 'user@domain.com'"|%{Get-MgUserPhotoContent -userid $_.id -OutFile $($photoPath.FullName}

# from https://www.adaxes.com/script-repository/import-user-photo-s244.htm
[Byte[]]$pictureBytes = Get-Content $photoPath -Encoding Byte
$Context.TargetObject.Put("thumbnailPhoto", $pictureBytes)
$Context.TargetObject.SetInfo()
0

Thanks ngb. I'm not fluent with powershell yet, so before I try to implement this I want to make sure I know what I'm looking at. This portion here: -userid $_.id

I'd have to replace $_ with the stored credential at $<graphCredential>?

Example: $myCredential ... $myCredential.id

0

Hello Keneth,

The script saves the target user photo from Microsoft 365 to on-premises AD. It does not influence Adaxes configuration. First of all, the script requires additional credentials to establish connection. Also, the approach will always force Get-MgUserPhotoContent to issue a warning that the file exists and will be overwritten. If the approach with saving the photo from Microsoft 365 to AD is what you need, you can use the following script from our repository: https://www.adaxes.com/script-repository/set-user-photo-from-microsoft-365-in-ad-s581.htm.

0

Also, the approach will always force Get-MgUserPhotoContent to issue a warning that the file exists and will be overwritten

Not as written it won't.

1 Answer

0 votes
by (272k points)

Hello Keneth,

If you mean the pictures displayed in the Web interface for on-premises users, there is no such possibility. Pictures can only be displayed according to the specified property of the user.

0

If I may suggest adding this idea as a feature, if it's even possibe.

0

Hello Keneth,

Thank you for the suggestion. We forwarded it to the corresponding department for consideration.

Related questions

0 votes
1 answer

We are evaluating the product and would like to let users of AD to change password in self service page. We would like to set a 90 days change password policy, ... self service page? Is it achievable (with customization and batch program)? Thanks in advance.

asked Apr 27, 2020 by eric (20 points)
0 votes
1 answer

We get Sharepoint Online requests for access to sites/folder/content. Is there a way to automate this task?

asked Jul 10, 2023 by dharry (20 points)
0 votes
1 answer

Is there a way to get the name of the user who approved a request and supply that to a step inside of a custom command? For example, HR submits a status change for an employee. ... and pass it as a param in a custom command that is called in one of the steps?

asked May 12, 2021 by davfount90 (20 points)
0 votes
1 answer

Our Help Desk currently 'mirrors' the group membership of a new user based on another existing user in our AD. I'd like to be able to automate this so that the initiator ... and 'paste' it on the new user being created. Any help on this would be appreciated!

asked Apr 21, 2020 by RayBilyk (230 points)
0 votes
1 answer

At user creation, when the inbox is created, I'd like to be able to format the address as firstname.lastname@domain.com for some users. Other users firstnameintial.lastname@domain.com, is this possible? Envornment is hybrid O365. Thanks!

asked Jan 4 by cewilson (140 points)
3,351 questions
3,052 answers
7,791 comments
545,090 users