Quantcast
Channel: Azure Active Directory forum
Viewing all articles
Browse latest Browse all 16000

Graph API licence assignment failed due to a strange error

$
0
0

Hi, I'm looking for help in resolving quite strange issue on license assignment to a newly created user.
I use Graph API v.2013-11-08 (tried with API v.1.5 with the same result) calls like :

"https://graph.windows.net/{domain}/users?api-version=2013-11-08" + JSON body
"https://graph.windows.net/{tenant}/users/{userPrincipalName}/assignLicense?api-version=2013-11-08" + JSON body

to create new accounts and to assign licenses to it. While  account is created successfully license assignment can't be done because of the next error:

Server response: {"odata.error":{"code":"Request_ResourceNotFound","message":{"lang":"en","value":"Resource '{userPrincipaName}/{or sometimes something like User_<alphanumeric String>}' does not exist or one of its queried reference-property objects are not present."}}}

Actually this error is strange because:
a) the account exists on the moment of the license assignment call;
b) passed skuid exists and is valid;
c) the error appears only on production environment, meanwhile the same account (same URLs, same data, same license skuid) can be normally created on another environment;
d) the error appears only for one domain. If I do test for other domains it works on all environments. It means that the problem is not with the code  (all the API calls are performed within Java Web App), but with something different that i can't find;

e) This error doesn't allow assign licenses to any users within one problematic domain using API calls, but they can be assigned to the same accounts in PowerShell.

Can you please advise where to look and/or what may cause such a problem?

Thank you.


Viewing all articles
Browse latest Browse all 16000

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>