pnp / pnp/sp-dev-fx-controls-react
Selected SharePoint group will display as another user when user name contains group name
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 433
- Forks
- 418
- Avg merge
- 5d 6m
- Merged PRs (30d)
- 19
Description
Category
[ ] Enhancement
[x] Bug
[ ] Question
Version
Please specify what version of the library you are using: [3.14.0]
Expected / Desired Behavior / Question
Create a user named Adelve Vance, and a SharePoint group named Van.
Add a PeoplePicker as flollowing:
<PeoplePicker
....
defaultSelectedUsers={loginNames}
principalTypes={[PrincipalType.User, PrincipalType.SharePointGroup]
/>
Input Van in PeopleSelector, and select group Van from options, record group login name Van to loginNames, PeoplePicker will change the displayed Van group to user Adelve Vance immediately. If we leave the defaultSelectedUsers empty, when this PeoplePicker inited with Van group name, it will display people Adelve Vance not groupc Van either.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue in the PeoplePicker with a SharePoint group named Van and a user named Adelve Vance, using defaultSelectedUsers and both User and SharePointGroup principal types. Trace the selection and initialization handling to determine why the group is displayed as the user, then verify that the selected Van group remains displayed as a group in both flows.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100