Skip to content

[BUG] Issue with EnsureUserAsync and AddAsync #2532

@KarolFilipKozlowski

Description

@KarolFilipKozlowski

Hey,
I try to learn PnP Core and move to it from CSOM, so on first attempt I test adding new items to list with alle types of fields.
I have issue with User fields.
According to the documentation I must EnsureUserAsync and I do it like in CSOM, the when I try adding new item i got exeption:

PnP.Core.ClientException: 'Property AadObjectId was not yet loaded'
image

No idea why this few fields are not loaded. For example in AAD for this account filed departament have data.

What is the version of the module you are running?

PnP.Core v 1.7.0
NET 6.0

Which operating system/environment are you running PnP PowerShell on?

  • Windows
  • Linux
  • MacOS
  • Azure Cloud Shell
  • Azure Functions
  • Other : please specify

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions