Massive Multi Input Multi Output (MIMO) and Non-Orthogonal Multiple Access (NOMA) techniques have emerged as revolutionary techniques to improve the spectrum efficiency for 5G systems. In this paper, user grouping and power allocation are investigated in NOMA based massive MIMO networks with Simultaneous Wireless Information and Power Transfer (SWIPT). We use the Zero Forcing (ZF) beamforming method to group users then the NOMA technique is applied to establish multiple access for the users of each group. In order to cluster the users, we propose a novel method for cluster head selection and user assignment to the group in which challenges related to Successive interference Cancellation (SIC) implementation are considered. In the following, we formulate the sum rate maximization problem based on jointly optimizing power allocation and power splitting factors. Since the formulated optimization problem is a non-convex optimization problem, it is converted to the convex form by some lemmas and relaxations. The relaxed problem is solved by the CVX toolbox of MATLAB software. Simulation results show that proposed strategies improve the sum rate in comparison with benchmark algorithms while the NOMA requirements are satisfied and the implementation challenges are handled.