What PRIVILEGE do I need to run "apoc.schema.assert()"?

I'm experimenting with user privileges and can't find what PRIVILEGE is needed to grant to be able to execute apoc.schema.assert() procedure.

With a newly created user I tried executing the following:

CALL apoc.schema.assert({},{},true) YIELD label, key

But got an error:

Schema operations are not allowed for user 'test1' with roles [PUBLIC, testr] restricted to SCHEMA.

Any help?



The solution was to grant 2 privileges.

One privilege for Index and one for Constraint.