Part write permissions

Hello! I am writing a program for NX working in TcEng. The program sequentially processes all components of the assembly and saves each. It is necessary to exclude from processing components/parts for which the user does not have the right to save. How can I find out which components/parts the current user can save?