Hi Shweta.
Could you provide us the code you use to do this? I need to hide the Replace Content action for a pre defined Role in Document Actions. And I believe that is the same procedure.
Eg: The guest role doesn't see the Replac Content Action in Document Details page, but all other roles can see it.
Thanks in advance