Let $G$ be a finite abelian group and denote by $G^{\vee}=\mathrm{Hom}(G,U(1))$ its Pontryagin dual. For any positive integer $n$ one can define a homomorphism of abelian groups $$ f:H^{n}(G,G^{\vee})\rightarrow H^{n+1}(G,U(1)) $$ Its action on the chains is $$ f(c)(g_1,...,g_{n+1})=\langle c(g_1,....,g_n),g_{n+1}\rangle $$ where $\langle \alpha ,g\rangle=\alpha(g)$ denotes the natural pairing $G\times G^{\vee}\rightarrow U(1)$. One can check that this is a defines a map of cohomology groups and is a homomorphism (see this post https://math.stackexchange.com/questions/4631490/a-map-in-group-cohomology-from-h2g-widehatg-to-h3g-u1 on MSE).
I would like to know if this is an isomorphism, or at least there if there are conditions on $G$ and $n$ which guarantee $f$ to be an isomorphism. For instance $H^2(\mathbb{Z}_N,\mathbb{Z}_N)=H^3(\mathbb{Z}_N,U(1))=\mathbb{Z}_N$ but i don't know if $f$ provides an isomorphism. Some hint for $G$ a product of cyclic groups will be also appreciated.