Skip to content

Empty Quota with API-Created-User  #5461

Closed

Description

@chrosey

Steps to reproduce

  1. Create User with ProvisioningAPI AddUser(username, password, groups)
  2. Get the UserDetails with GetUser(username)

Expected behaviour

Quota should be filled

Actual behaviour

Quota is empty Array

Server configuration

Operating system:

Web server:

Database:

PHP version:

Nextcloud version: (see Nextcloud admin page)
11
Updated from an older Nextcloud/ownCloud or fresh install:

Where did you install Nextcloud from:

Signing status:

Signing status
Login as admin user into your Nextcloud and access 
http://example.com/index.php/settings/integrity/failed 
paste the results here.

List of activated apps:

App list
If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your Nextcloud installation folder

Nextcloud configuration:

Config report
If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your Nextcloud installation folder

or 

Insert your config.php content here. 
Make sure to remove all sensitive content such as passwords. (e.g. database password, passwordsalt, secret, smtp password, …)

Are you using external storage, if yes which one: local/smb/sftp/...

Are you using encryption: yes/no

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...

LDAP configuration (delete this part if not used)

LDAP config
With access to your command line run e.g.:
sudo -u www-data php occ ldap:show-config
from within your Nextcloud installation folder

Without access to your command line download the data/owncloud.db to your local
computer or access your SQL server remotely and run the select query:
SELECT * FROM `oc_appconfig` WHERE `appid` = 'user_ldap';


Eventually replace sensitive data as the name/IP-address of your LDAP server or groups.

Client configuration

Browser:

Operating system:

Logs

Web server error log

Web server error log
Insert your webserver log here

Nextcloud log (data/nextcloud.log)

Nextcloud log
Insert your Nextcloud log here

Browser log

Browser log
Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log
c) ...

Activity

  1. MorrisJobke commented on Aug 30, 2017

    @MorrisJobke
    Member

    Newly created user:

    <?xml version="1.0"?>
    <ocs>
    	<meta>
    		<status>ok</status>
    		<statuscode>200</statuscode>
    		<message>OK</message>
    	</meta>
    	<data>
    		<enabled>true</enabled>
    		<id>abc</id>
    		<quota/>
    		<email/>
    		<displayname>abc</displayname>
    		<phone></phone>
    		<address></address>
    		<website></website>
    		<twitter></twitter>
    		<groups/>
    		<language></language>
    	</data>
    </ocs>
    

    after login:

    <?xml version="1.0"?>
    <ocs>
    	<meta>
    		<status>ok</status>
    		<statuscode>200</statuscode>
    		<message>OK</message>
    	</meta>
    	<data>
    		<enabled>true</enabled>
    		<id>abc</id>
    		<quota>
    			<free>46374555648</free>
    			<used>164</used>
    			<total>46374555812</total>
    			<relative>0</relative>
    			<quota>-3</quota>
    		</quota>
    		<email/>
    		<displayname>abc</displayname>
    		<phone></phone>
    		<address></address>
    		<website></website>
    		<twitter></twitter>
    		<groups/>
    		<language>de_DE</language>
    	</data>
    </ocs>
    

    @icewind1991 Is there a reason why no quota is set by default and only after the first login?

  2. ghost removed
    staleTicket or PR with no recent activity
    on Jun 12, 2019
  3. szaimen commented on May 21, 2021

    @szaimen
    Contributor

    I'm closing this issue due to inactivity. If this is still happening please make sure to upgrade to the latest version. After that, feel free to reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions