sharepoint - How to find if OneDrive is active for a user in Office365 through API? -
is there way find out user has onedrive site(for office365 account)?
i'm getting user list sharepoint site through
https://{domain}-my.sharepoint.com/_api/web/siteusers
but there no field indicate if user has active onedrive .by onedrive mean personal site of sort;
https://{domain}-my.sharepoint.com/personal/user_name_domain_microsoft_com
one way find out accessing url user , check if yields 404 response.
i'm trying done via rest api? on this?
the following user properties used distinguish actual (or active) spo users:
- principal.principaltype property -
principaltype.user
value specifies user principal type - useridinfo.nameidissuer property - configuration-agnostic reference type of name identifier issuer, spo users value:
urn:federation:microsoftonline
rest request:
/_api/web/siteusers?$filter=principaltype eq 1 , userid/nameidissuer eq 'urn:federation:microsoftonline'
Comments
Post a Comment