Google Apps Marketplace CustomerLicense returns UNLICENSED even after installation

谁说我不能喝 提交于 2019-12-14 03:13:23

问题


This ask is related to the release of the "non-admin can install an app on a domain" feature announced here: http://googleforwork.blogspot.com/2014/09/google-apps-marketplace-to.html

I'm seeing that when a non-admin installs our app onto their domain (through the use of a whitelist), the CustomerLicense returned from the "https://www.googleapis.com/appsmarket/v2/customerLicense/" endpoint is still UNLICENSED. When an admin installs the app, the CustomerLicense is set correctly to ACTIVE.

Seems like a bug. If not, can someone from the GAM team help clarify what I should expect here? Thanks!


回答1:


non-admin installs the app only for himself/herself. Since CustomerLicense api is for querying domain level licensing info, the api correctly returns UNLICENSED.

Try using UserLicense api instead https://developers.google.com/apps-marketplace/v2/reference/userLicense.



来源:https://stackoverflow.com/questions/27790390/google-apps-marketplace-customerlicense-returns-unlicensed-even-after-installati

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!