microsoft-graph-toolkit icon indicating copy to clipboard operation
microsoft-graph-toolkit copied to clipboard

Add selectGroupsById method to PeoplePicker component

Open umaknow-william opened this issue 5 years ago • 4 comments

Proposal: Add selectGroupsById method to the People-Picker component

Description

Currently the People-Picker component does not allow for prepopulating the component by group IDs, only by user IDs.

Rationale

In an application where end-users can select users and groups using the <mgt-people-picker type="any /> component, prepopulating the mgt-people-picker with groups should be possible via a similar method as exists for adding a user. Currently the method selectUsersById works perfectly for adding a user to the People-Picker through JavaScript, but cannot be used for adding groups.

Preferred Solution

I would like to be able to prepopulate the People-Picker component with both user IDs and group IDs. Adding 'selectGroupsById' seems inline with the components potential uses and complements nicely previously accepted feature requests see : #1065 #1123

Additional Context

This feature request is inspired by #1065 and #1123, it is intended to solve a similar issue, but from another angle. Specifically prepopulating the People-Picker via JavaScript.

umaknow-william avatar May 19 '21 19:05 umaknow-william

Hello umaknow-william, thank you for opening an issue with us!

I have automatically added a "needs triage" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback 🙌

ghost avatar May 19 '21 19:05 ghost

@umaknow-william

I think this is a great feature, thanks for bringing it forward and the info.

Is this something you'd like to work on and contribute towards the toolkit with a PR?

vogtn avatar May 19 '21 19:05 vogtn

Thanks for the speedy response, yes I'd be happy to submit a PR.

umaknow-william avatar May 19 '21 20:05 umaknow-william

@umaknow-william

All yours, let us know if you have any questions, and follow along the wiki for general guidance.

vogtn avatar May 19 '21 20:05 vogtn