microsoft / microsoft/Power-CAT-Copilot-Studio-Kit
Bug: Power Shield queries systemuser table for UPN against the wrong column
@RajeevPentyala is already working on this.
Since Sep 11, 2026.
- Dominant language
- TypeScript
- Stars
- 450
- Forks
- 95
- Avg merge
- 26m
- Merged PRs (30d)
- 5
Description
Description
In Copilot Agent Kit version 20260904.2 (installed via AppSource, updated two days ago) Power Shield displays following error:
Steps to reproduce
When navigating to Power Shield the following request is trying to get the current user record from systemuser table:
GET systemusers?$select=systemuserid&$filter=internalemailaddress+eq+%27<UPN>%27&$top=1
Expected behavior
instead of filtering against internalemailaddress (display name "Primary Email") column domainname (display name "User Name") should be used as that one seems to store the actual UPN
GET systemusers?$select=systemuserid&$filter=domainname+eq+%27<UPN>%27&$top=1
Actual behavior
GET systemusers?$select=systemuserid&$filter=internalemailaddress+eq+%27<UPN>%27&$top=1
Environment
No response
Additional context or logs
No response
Contributor guide
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.
Assessment
This issue has not been assessed yet.