A method for grouping user equipments (UEs) in proximity services restricted discovery, used in a communications system, characterized by: transmitting, by a first user equipment, a first discovery request to the network, wherein the first discovery request includes a group ID; receiving, by the first UE, a first discovery response transmitted from the network which transmits the first discovery response according to the first discovery request, wherein the first discovery response includes a first group code; transmitting, by a second UE, a second discovery request to the network, wherein the second discovery request includes the group ID; receiving, by the second UE, a second discovery response transmitted from the network which transmits the second discovery response according to the second discovery request, wherein the second discovery response includes a second group code; broadcasting, by the first UE, a UE discovered signal for being discovered, wherein the UE discovered signal includes the first group code corresponding to the first UE; receiving, by the second UE, the UE discovered signal and comparing the first group code with the second group code corresponding to the second UE; transmitting, by the second UE, a comparing report to a network when the first group code and the second group code are the same; in response to the comparing report, transmitting by the network a comparison acknowledgement, in which the comparison acknowledgement includes information that confirms that the first UE and the second UE are in the same group; and in response to receiving the comparison acknowledgement and the information, instituting direct communications between the first UE and the second UE; and before transmitting the first discovery request by the first UE, transmitting a first authorization request to the network; and receiving a first authorization response transmitted by the network which transmits the first authorization response according to the first authorization request, wherein the first authorization response includes the group ID; and before transmitting the second discovery request by the second UE, transmitting a second authorization request to the network; and receiving a second authorization response transmitted by the network which transmits the second authorization response according to the second authorization request, wherein the second authorization response includes the group ID. transmitting, by a first user equipment, a first discovery request to the network, wherein the first discovery request includes a group ID; receiving, by the first UE, a first discovery response transmitted from the network which transmits the first discovery response according to the first discovery request, wherein the first discovery response includes a first group code; transmitting, by a second UE, a second discovery request to the network, wherein the second discovery request includes the group ID; receiving, by the second UE, a second discovery response transmitted from the network which transmits the second discovery response according to the second discovery request, wherein the second discovery response includes a second group code; broadcasting, by the first UE, a UE discovered signal for being discovered, wherein the UE discovered signal includes the first group code corresponding to the first UE; receiving, by the second UE, the UE discovered signal and comparing the first group code with the second group code corresponding to the second UE; transmitting, by the second UE, a comparing report to a network when the first group code and the second group code are the same; in response to the comparing report, transmitting by the network a comparison acknowledgement, in which the comparison acknowledgement includes information that confirms that the first UE and the second UE are in the same group; and in response to receiving the comparison acknowledgement and the information, instituting direct communications between the first UE and the second UE; and before transmitting the first discovery request by the first UE, transmitting a first authorization request to the network; and receiving a first authorization response transmitted by the network which transmits the first authorization response according to the first authorization request, wherein the first authorization response includes the group ID; and before transmitting the second discovery request by the second UE, transmitting a second authorization request to the network; and receiving a second authorization response transmitted by the network which transmits the second authorization response according to the second authorization request, wherein the second authorization response includes the group ID.