Prepare baking dish, and thaw hash browns: Preheat oven to 350°F. Coat a 2-quart (11- x 7-inch) baking dish with cooking spray; set aside. If thawed hash browns have excess moisture, pat dry with paper towels.
Combine ham and hash browns: Toss together hash browns and ham in a large bowl; set aside.
Cook onions and garlic: Melt butter in a medium saucepan over medium. Add onion, and cook, stirring often, until softened, 4 to 5 minutes. Add garlic, and cook, stirring constantly, until fragrant, about 1 minute.
Add seasonings: Stir in flour, mustard, and paprika; cook, stirring constantly, until flour mixture coats onion, about 1 minute.
Make cheese sauce: Gradually add milk, whisking constantly, until smooth. Cook, whisking often, until thickened, 3 to 4 minutes. Whisk in salt and pepper. Remove from heat, and add Cheddar, about ¼ cup at a time, and whisk until melted, about 1 minute.
Combine sauce and hash brown mixture: Pour half of milk mixture into bowl with hash browns and ham; stir until evenly coated. Spoon hash brown mixture evenly into prepared baking dish. Pour remaining half of milk mixture evenly over hash brown mixture.
Bake casserole: Bake in preheated oven until hash browns in center of baking dish are fork-tender and top is browned, 45 to 50 minutes. Let cool 10 minutes before serving.
Garnish, and serve: Sprinkle with scallions or chives, and serve hot.
