In the Office365admincenter, you can create securitygroups and add users to those securitygroups. You can then assign permissions to that security group, such as, in SharePointOnline. If you have synchronized your Office365 account with
your onpremises ActiveDirectory, securitygroups created in ActiveDirectory are also synchronized across to Office365.