def METHOD_NAME(uid, gid):
    group_name = get_group_by_gid(gid)
    username = get_username_by_uid(uid)
    if group_name is not None and username is not None:
        ipa_group_add_user({ 'user' : username, 'group' : group_name })