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 (288k 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

Is there a way to add Microsoft Defender for Office 365 Plan 2 licenses from Adaxes? Currently it is not showing in the list of available licenses to modify. The endpoint ... the E3 license is showing up no problem, just not the standalone one for O365.

asked Aug 20 by Alex23 (50 points)
0 votes
1 answer

Users are asking if they can change their name to suit preferred names as opposed to birth names? Is this possible?

asked Oct 14 by Charlie.Evans (70 points)
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)
3,541 questions
3,232 answers
8,225 comments
547,802 users