1

I am creating target audience using the sample code here https://docs.microsoft.com/en-us/sharepoint/administration/create-an-audience-for-sharepoint-server

My problem is that when I create target audiences in different environments they get created with different GUIDs.

Is there a way to create a target audience with a specific GUID?

1

I don’t think we can set the GUID for audience by ourselves.

AudienceID is automatically generated by SharePoint and it is stored in database. It is unsupported to modify the database directly.

Similar thread:

Set GUID Programatically for New Audience

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.