AttributeError system.roster

I´m tryng to use system.roster Attruibutes to add an User to my Call Roster. But I get this error.

AttributeError: 'com.inductiveautomation.ignition.designer.gui.tool' object has no attribute 'roster'.

Many system.roster functions are not available in the Designer scope, such as the script console.

Oh, okay, and where can I put it? Do I need to add and remove users from the perspective view, or is it not possible?

You need to invoke your script from the gateway. All Perspective scripts (even ones in the designer) are automatically running in the gateway, so that's definitely one option. The best place to invoke your script is going to depend on exactly when you want your script to run.

1 Like

I´ll try, thank you!