Hi @Harsha Vardhan Reddy,
If you're working with the SharePoint PnP (Patterns and Practices) People Picker control and want to prepopulate it with a security group that doesn't have an email assigned, you can use the Group ID or Group Principal Name (UPN) instead.
Here's an example of how you can use the Group ID:
JavaScriptCopy
var groupID = 123;
var peoplePicker = new PnPClientStoragePeoplePicker({});
peoplePicker.SetEnabledState(true); peoplePicker.SetUrlZone(1); peoplePicker.SetParentElement(document.getElementById('peoplePickerDiv')); peoplePicker.SetPrincipalType(1); peoplePicker.SetSearchPrincipalSource(15); peoplePicker.SetEnabledState(true); peoplePicker.AddUserKeys([groupID]);
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
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.