Hello,
I am trying to pull the filesystem ACL from out truenas server running SMB shares. On the documentation for the groupsget endpoint, it specifies:
But when inputting this into the body of the GET request, I get this message back.
I have also tried using the
Has anyone else ran into this problem?
I am trying to pull the filesystem ACL from out truenas server running SMB shares. On the documentation for the groupsget endpoint, it specifies:
Code:
Query groups with query-filters and query-options. As a performance optimization, only local groups will be queried by default. Groups from directory services such as NIS, LDAP, or Active Directory will be included in query results if the option {'extra': {'search_dscache': True}} is specified
But when inputting this into the body of the GET request, I get this message back.
Code:
{ "query-options": [ { "extra": { "search_dscache": true } } ] }
Code:
{ "message": "Invalid filter {'extra': {'search_dscache': True}}", "traceback": "Traceback (most recent call last):\n File \"/usr/local/lib/python3.8/site-packages/middlewared/restful.py\", line 567, in do\n result = await self.middleware.call(methodname, *method_args, **method_kwargs)\n File \"/usr/local/lib/python3.8/site-packages/middlewared/main.py\", line 1238, in call\n return await self._call(\n File \"/usr/local/lib/python3.8/site-packages/middlewared/main.py\", line 1195, in _call\n return await methodobj(*prepared_call.args)\n File \"/usr/local/lib/python3.8/site-packages/middlewared/schema.py\", line 973, in nf\n return await f(*args, **kwargs)\n File \"/usr/local/lib/python3.8/site-packages/middlewared/plugins/account.py\", line 1012, in query\n return await self.middleware.run_in_thread(\n File \"/usr/local/lib/python3.8/site-packages/middlewared/utils/run_in_thread.py\", line 10, in run_in_thread\n return await self.loop.run_in_executor(self.run_in_thread_executor, functools.partial(method, *args, **kwargs))\n File \"/usr/local/lib/python3.8/site-packages/middlewared/utils/io_thread_pool_executor.py\", line 25, in run\n result = self.fn(*self.args, **self.kwargs)\n File \"/usr/local/lib/python3.8/site-packages/middlewared/utils/__init__.py\", line 160, in filter_list\n elif not filterop(f):\n File \"/usr/local/lib/python3.8/site-packages/middlewared/utils/__init__.py\", line 134, in filterop\n raise ValueError(f'Invalid filter {f}')\nValueError: Invalid filter {'extra': {'search_dscache': True}}\n" }
I have also tried using the
search_dscache=True
as a query parameter, but this does not work either. Has anyone else ran into this problem?