Hi @Anonymous ,
Probably you can do that with the use of a file URL. Please find below the steps
You can include the below steps in your existing flow.
1- To provide unique permissions to documents, you require a file server relative URL.
2- The server relative URL will get from the document link stored in the column.
3- Once you retrieve the server relative URL of the file, break the role inheritance to add new permissions
4- Get the principal id of the users/group to which you want to add permission.
Flow steps:
1 - Retrieve server relative URL.

Value : /sites/ {{expresssion}}
{{expresssion}} = split('value of your document link column ','sites')[1]
2- Break role inheritance of that document to provide permissions

Uri : /_api/web/GetFileByServerRelativeUrl('@{variables('Server Relative Url')}')/ListItemAllFields/breakroleinheritance(copyRoleAssignments=false,clearSubscopes=true)
Note : This will remove the inherit permission of your document, which is delegated from parent.
If your file already have unique permission, then it will do nothing and simply ignore this action.
3- You need to get the principal id of all the users, to whom you want to add permissions. After that use below action to provide permission.

In above case I have hardcoded the principalid = 45 , you need to get dynamically by passing user email or name.
Role definition :

Thanks,
Vivek
If this post helps answer your question, please click on "Accept as solution" to help other members find it more quickly.
If you thought this post was helpful, please give it a thumbs ups