question

AnisELTAIEF-7646 avatar image
0 Votes"
AnisELTAIEF-7646 asked ·

'The user does not exist or is not unique' error when selection Audiense targetting in SharePOint Online Site Pages

Hi Community,

I'm experiencing the error "The user does not exist or is not unique" when selecting an audience from page properties

More informations;
Environment: SharePoint online
Almost of Audiences contains dash characters in display name ('-')
This doesn't work also with audiences that don't contain specials characters in display names.
Pages type: Modern pages

office-sharepoint-online
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JerryXu-MSFT avatar image
0 Votes"
JerryXu-MSFT answered ·

Hi, @AnisELTAIEF-7646 ,

Would you like to provide a screenshot of this error? According to your description, all the audiences does not work audience targeting. Would you like to provide the whole process? I will test in my end to see if anything goes wrong. And do all the pages have this issue?


If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AnisELTAIEF-7646 avatar image
0 Votes"
AnisELTAIEF-7646 answered ·

Hi @JerryXu-MSFT
I Have trayed two ways to add the audience field at the "SitePages" level:
- 1st way activate audience targetting an the "Site Page" Configguration (screen1)
- 2nd way ; add a field exported from other site using PnPPoowershell : Add-PnPFieldFromXml '<Field ID="{7f759147-c861-4cd6-a11f-5aa3037d9634}" Type="UserMulti" List="UserInfo" Name="_ModernAudienceTargetUserField" StaticName="_ModernAudienceTargetUserField" DisplayName="Audience" Required="FALSE" SourceID="{a925cfc1-7fe7-4002-996d-74065f2c6dd3}" ColName="int2" RowOrdinal="0" ShowField="ImnName" ShowInDisplayForm="TRUE" ShowInListSettings="FALSE" UserSelectionMode="GroupsOnly" UserSelectionScope="0" Mult="TRUE" Sortable="FALSE" Version="1" />' -List "Site Pages"

All of two ways return "'The user does not exist or is not unique" when i select a group from audience field.
76173-2021-03-10-07-46-46.png



· 3 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi, @AnisELTAIEF-7646 ,
Thanks for the update, the first way shall be enough. Does this issue occur on other site collections in your tenant? And would you like to to add a screenshot when you select a group from audience field and get the error "The user does not exist or is not unique". I tested with several tenants. As long as I enable audience targeting like your first approach, I can add an audience group.

76159-image.png


1 Vote 1 ·
image.png (12.5 KiB)

@JerryXu-MSFT ,
This problem accurs in almost of site collection, but the same 2 configuration works for aother site collections.
Here Attached you find screenshots.
Best reagards

Page details:
76209-1.png
Request :
76264-requestpng.jpg
Response:
76170-response.jpg


0 Votes 0 ·
requestpng.jpg (550.7 KiB)
response.jpg (83.6 KiB)
1.png (303.0 KiB)
1.png (303.0 KiB)
requestpng.jpg (550.7 KiB)
response.jpg (83.6 KiB)

Hi, @AnisELTAIEF-7646 ,

I tested in several different tenants and not being able to reproduce your issue. As long as the group is a security group or O365 group, we shall be able to add it to audience targeting. It may be better to open a service request about this issue.

0 Votes 0 ·