-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
contexthas issue? #11
Comments
Thanks I'll investigate. |
OK. It seems to ignore what ContextHas says if you specify -groups but not -teams. I need to check if Groups work with a non-work-or-school account - possibly it just returns an empty set. The
and in this case it is only told to look at My AuthContext looks like this
Are you using an Azure AD account? What does ... |
so we only use AppOnly authentication and not delegated which I don't think will return either work or school, you can see the auth context below. ClientId : xxxxxx-x If we bypass the ContextHas then we have no issues returning the data we are interested in. |
I have just checked some code into the the repo which should set |
sure I can try it out if it helps you - prob have some time tomorrow. |
I can confirm that I am having the same issue, using Azure AD accounts, in both my lab tenant and production tenants. Trying:
My AuthContext:
|
@gingerXpat How are you logging on ?
I'm guessing you're logging on and then loading plusplus ? You should also get a greeting of
When you connect |
You are correct. I have been using Connect-MgGraph. I'm on the road now, but will try this and get back to you by tomorrow morning. Thanks for the quick response. |
Okay, I did try this and ran into the following problem, which reminds me why I was using
I am still able to authenticate and connect to the Graph. However, the additional properties are still not present when I check my In the case there is a dependency on the Az module:
I hope this helps. Perhaps I'm overlooking something on my end. |
That's a problem which I thought I had fixed - basically I added something to allow people with the Az cli to get an access token with that if it was present, and I missed an https://github.com/jhoneill/MsftGraph/blob/PlusPlus/Authentication.ps1 shows the line has moved down the file and does have the silently continue in it so I need to figure out why that isn't in the gallery. |
Loud "Doh" noises and face-palm sounds - it looks like I had V1.5.4 all set to go to the gallery but never hit publish. |
steps to produce error :
ggu -userid user@somwhere -teams
ggg somegroup
error reported (user)
WARNING: Only the -Drive, -Calendars and -Notebooks options work when you are logged in with this kind of account.
error reported (groups)
WARNING: This requires a work or school account.
running environment
install on windows 11
version 1.5.3
graph version : latest
auth: app auth via cert.
Comments
ggu -userid user@somwhere -groups will work and return groups as expected,
I'm guessing ContextHas isnt working as expected.
The text was updated successfully, but these errors were encountered: