Can we create a user macro in confluence which is visible at space level instead of global level
No, but within the user macro you could check what space the page is in and if it is not in a specific space then not do anything.
It looks like you're new here. Sign in or register to get started.