I'm try to add a domain group to a folder using
EnsureUser and get the following response
The specified user GROUPNAME could not be found.
The group exists, I've found if I add this group to another item in the site and try again it succeeds. Do I need to add the group to the site and then call ensure user? This seems to occur the very first time. It's almost like it needs to be added to the site first?
If this the case how do I go about achieving this with CSOM
I've tried the following for ensureuser and still the same:
This is also a Office 365 Group