Does a student need official permission to publish an independent research article with university affiliation?
First, check if your university has rules/policies/guidelines in place. If so, follow them.
Otherwise, use your university name as affiliation. No need to ask them. (Trust me, they are much more worried about people forgetting to use the affiliation, than the other way around!)