# Insert function - “Insufficient privileges to perform the action.”

Hello there. Although I do allow indexes from the security section, in the insert function, “Insufficient privileges to perform the action.” I get an error. What else could this be from? Thanks

``````const insert = await authClient(token).query(
q.Insert(
q.Select(
['ref'],
q.Get(q.Match(q.Index('list_by_creator_id'), creator_id))
),
1,
'create',
{
data: { book }
}
)
);
``````

As I said, I gave Read permission to index from the role section.

SOLVED: Allow “History Write”