How to Export a list for a specific role?

Dinesh Kumar5
Kilo Contributor

Hi All,

 I am having a list and want to export those list. But Not all the users will export it only the users having "export role" needs to export it . If others try to export those list it must deny those action. if anybody know the solution please let me know.

Thanks,

Dinesh Kumar G

4 REPLIES 4

Ali Shaikh1
Giga Expert

Hi Dinesh,

User has specific role (global_exporter) can export the List ,

so assign this role to those user who you want to give permission for export.

 

 

Kindly mark the answer Correct and Helpful if this answers your question. 

Thanks,

Ali.

Tanushree Doiph
Mega Guru

Hey Dinesh kumar,

Type sys_user_has_role.list in the navigation filter. Once on that list, right-click on the header and export.

 

Please mark my comment correct and helpful.

Thanks

Tanushree

Bhagyashri Sort
Kilo Guru

Hi Dinesh,

  If you don't want to use the 'out of box' functionality of export, then you can create a UI action for export and in that you can check whether that user has a role for export or not that which is a custom role.

function roleExport(){

      gs.hasRole('roleName');

}

Please mark it Correct or helpful, if my response is usable to you.

Indrajit
Mega Guru

Hey Dinesh,

check out this similar thread below,

https://community.servicenow.com/community?id=community_question&sys_id=c66e695ddb1f63c0656a5583ca96...

Please mark Correct and Helpful If my response is worthy.

Regards,

Indrajit.