# Can Driver Scripted Expressions access Node Group Inputs?

I have a Material that consists of a single Node Group; one of the Node Group inputs is a scalar value named Spot Z Rot.

I'd like to add a driver to the Z rotation of an object, forcing it to match the Z Rot of this Node Group input. However, when I try to do this in various ways, the property is not recognized. I am able to access Spot Z Rot from the general scripting interface:

But when I try to do something similar in the Add Driver menu, Spot Z Rot is not recognized as a valid property of the Material:

So far I have tried, without success, the following:

bpy.data.node_groups['ToonShader'].inputs['Spot Z Rot']

(Actually, even in the general Python scripting interface, I was a bit confused; Getting the actual (not default) input value of a node group for a specific user clarifies how access should work, but node_tree.nodes.get('ToonShader').inputs['Spot Z Rot'].default_value does not work in the Driver either.)