microsoft / microsoft/Power-CAT-Copilot-Studio-Kit

Bug: Power Shield queries systemuser table for UPN against the wrong column

Open
#860 1 comment 0 reactions 1 assignee View on GitHub

@RajeevPentyala is already working on this.

Since Sep 11, 2026.

bug
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:
Image

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.