How to get role ids

Trying to edit quotas for roles following this guide: Proxy Service Configuration

I know the names of the roles but cannot find their ids?

Do I have to extend the default proxy.yaml to add the role_quotas field?

If you use the default ocis roles, those are hardcoded here: ocis/services/settings/pkg/store/defaults/defaults.go at master · owncloud/ocis · GitHub

If you use custom roles, you can define your own ids for these. Though a uuid is recommended.

Yes. Just add the code snippet from the example

Ok, I extended and added the proxy.yaml to /etc/ocis but now the server won’t start unless I remove it:

policy_selector:
  static:
    policy: ocis

role_quotas:
    2aadd357-682c-406b-8874-293091995fdd: 10737418240

policies:
  - name: ocis
    routes:
      # defaults, taken from https://owncloud.dev/services/proxy/configuration/
      - endpoint: /
        backend: http://localhost:9100
      - endpoint: /.well-known/
        backend: http://localhost:9130
      - endpoint: /konnect/
        backend: http://localhost:9130
      - endpoint: /signin/
        backend: http://localhost:9130
      - endpoint: /archiver
        backend: http://localhost:9140
      - type: regex
        endpoint: /ocs/v[12].php/cloud/user/signing-key
        backend: http://localhost:9110
      - endpoint: /ocs/
        backend: http://localhost:9140
      - type: query
        endpoint: /remote.php/?preview=1
        backend: http://localhost:9115
      - method: REPORT
        endpoint: /remote.php/dav/
        backend: http://localhost:9115
      - type: query
        endpoint: /dav/?preview=1
        backend: http://localhost:9115
      - type: query
        endpoint: /webdav/?preview=1
        backend: http://localhost:9115
      - endpoint: /remote.php/
        service: com.owncloud.web.ocdav
      - endpoint: /dav/
        service: com.owncloud.web.ocdav
      - endpoint: /webdav/
        service: com.owncloud.web.ocdav
      - endpoint: /status.php
        service: com.owncloud.web.ocdav
      - endpoint: /index.php/
        service: com.owncloud.web.ocdav
      - endpoint: /apps/
        service: com.owncloud.web.ocdav
      - endpoint: /data
        backend: http://localhost:9140
      - endpoint: /app/
        backend: http://localhost:9140
      - endpoint: /graph/
        backend: http://localhost:9120
      - endpoint: /api/v0/settings
        backend: http://localhost:9190

On oCIS 6.2

My docker.yaml running on port 9200, but changing the prefix didn’t work either.

services:
  ocis:
    image: owncloud/ocis-rolling:6.2.0
    container_name: ocis_runtime
    ports:
      - "9200:9200"
    volumes:

Mmh. That works for me.

What is the error message you get when you start the server?

Does is start without the role_quotas block?

Do you need to reconfigure the routes? If not you can just leave that block out.

EDIT: I checked and I have problems when using your routes (with login mainly). Maybe just try without the policies block?

docker starts fine, but when I go to my ocis public url I get a “This page isn’t working” 401 error, nothing in the /logs directory.

These are the rest of my envs:

      OCIS_INSECURE: "false"
      PROXY_ENABLE_BASIC_AUTH: "false"
      PROXY_HTTP_ADDR: "0.0.0.0:9200"
      WEB_UI_THEME_SERVER: "https://test.com"
      WEB_UI_THEME_PATH: "/ocis/theme/theme.json"
      WEB_ASSET_CORE_PATH: "/dist"
      WEB_UI_CONFIG_FILE: "/config/config.json"
      WEB_OIDC_CLIENT_ID: "web"
      OCIS_URL: "https://storage.test.com"
      PROXY_AUTOPROVISION_ACCOUNTS: "true"
      PROXY_ROLE_ASSIGNMENT_DRIVER: "oidc"
      OCIS_OIDC_ISSUER: "https://test.com"
      PROXY_OIDC_REWRITE_WELLKNOWN: "true"
      PROXY_USER_OIDC_CLAIM: "preferred_username"
      PROXY_USER_CS3_CLAIM: "username"
      PROXY_OIDC_SKIP_USER_INFO: "true"
      OCIS_ADMIN_USER_ID: ""
      OCIS_EXCLUDE_RUN_SERVICES: "idp"
      GRAPH_ASSIGN_DEFAULT_USER_ROLE: "false"
      GRAPH_USERNAME_MATCH: "none"
      PROXY_CSP_CONFIG_FILE_LOCATION: "/etc/ocis/csp.yaml"

Yes it works now without the policies block:

policy_selector:
  static:
    policy: ocis

role_quotas:
    2aadd357-682c-406b-8874-293091995fdd: 10737418240

Also, might want to add the capacity to the web UI (ej, X B out of Y used):
Screenshot from 2024-08-02 12-18-51

Isn’t that the case? It works for me:
Screenshot from 2024-08-05 09-26-46

Nope, on Web 10.0.0 and OCIS rolling 6.2.0, what version is that?

Mmh. Strange. I tried older version (6.1 ocis/9.2 web). But this is supposed to work. with actual version. I wonder why it doesn’t…

I did a fresh install without previous data and the percentages are now shown on client.