docs icon indicating copy to clipboard operation
docs copied to clipboard

cloud/user Provisioning API endpoint

Open phil-davis opened this issue 5 years ago • 0 comments

You can do:

$ curl -u phil:phil http://172.17.0.1:8080/ocs/v1.php/cloud/user
<?xml version="1.0"?>
<ocs>
 <meta>
  <status>ok</status>
  <statuscode>100</statuscode>
  <message>OK</message>
  <totalitems></totalitems>
  <itemsperpage></itemsperpage>
 </meta>
 <data>
  <id>phil</id>
  <display-name>Phil Ji</display-name>
  <email></email>
 </data>
</ocs>

But I don't see that in the Provisioning API docs.

I can also do:

$ curl -u phil:phil http://172.17.0.1:8080/ocs/v1.php/cloud/users/phil
<?xml version="1.0"?>
<ocs>
 <meta>
  <status>ok</status>
  <statuscode>100</statuscode>
  <message/>
 </meta>
 <data>
  <quota>
   <free>107902296064</free>
   <used>0</used>
   <total>107902296064</total>
   <relative>0</relative>
   <definition>default</definition>
  </quota>
  <email></email>
  <displayname>Phil Ji</displayname>
  <home>/home/phil/git/owncloud/core/data/phil</home>
  <two_factor_auth_enabled>false</two_factor_auth_enabled>
 </data>
</ocs>

That is documented, and gives more attributes of the user.

Where Does This Need To Be Documented?

https://doc.owncloud.com/server/admin_manual/configuration/user/user_provisioning_api.html

Why Should This Change Be Made? (Optional)

What Type Of Content Change Is This? (Optional)

  • [ ] New Content Addition
  • [ ] Old Content Deprecation
  • [ ] Existing Content Simplification
  • [ ] Bug Fix to Existing Content

Which Manual Does This Relate To? (Optional)

  • [ ] Admin Manual
  • [ ] Developer Manual
  • [ ] User Manual
  • [ ] Android
  • [ ] iOS
  • [ ] Branded Clients
  • [ ] Desktop Client
  • [ ] Other

phil-davis avatar Sep 16 '20 04:09 phil-davis