Have you tried using an HTTP request? It might suit your needs better. If this doesn't work for what you need I can help you with creationType. Please let me know.
Thank you,
James
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I need to list all non-external users (federated from on-prem AD or cloud users), either by using AzureAD cmdlets or the Graph API.
But I am having problems with the filter clause.
I do not want to use userType becuase it can be changed, and does not necessarily show if a user is internal or external. Instead I am trying to use creationType or externalUserState.
For both of these I can do something like: creationType eq 'Invitation' to find external users.
But how can I do the opposite?
Non of the following works:
creationType eq ''
creationType eq null
creationType ne 'Invitation'
not creationType eq 'Invitation'
Will I have to extract all users, and do the filtering afterwards?
Have you tried using an HTTP request? It might suit your needs better. If this doesn't work for what you need I can help you with creationType. Please let me know.
Thank you,
James