It is an interesting debate.
Examples of books I have read which fall into this category:
Memoirs of a geisha Arthur Golden
The help Kathryn Stockett
Both the above were accused of cultural appropriation and misrepresentation and of effectively stealing someone else's life story.
Many would-be writers are told to "write what you know" (from the heart/authentic voice etc)
That said, fiction should allow freedom of voice and expression, imagination and creativity.
Sometimes a writer will be criticised even if they have experience (Sarah Lotz did multiple narrators incl for eg. narrative voices in japanese and afrikaans: the latter criticised despite the author having lived in South Africa for years). I loved that novel (The three), loved it because it was global with different voices, characters, nuances.
How far does research carry an author?
Also: regarding identity
Lionel Shriver is not a mother. Does that mean she should never have tackled maternal ambivalence? that would strike me as censorship. And whilst I know many hated it, I, for one, needed that book to be written.